Entities in CloudSim have a name (String) and id (int); Names are not
necessarily related to id: for example, you could name your data
center as "public cloud" or whatever other name you want. Ids, on the
other hand, are assigned by the simulation core and cannot be chosen
by users.
In the messages in the examples, sometimes we used the name of the
data center (Datacenter_0) and sometimes its id (2).
Regards,
Rodrigo
You cannot assign these ids by yourself; this value is given by the
simulation core based on the order the entities are instantiated.
Regards,
Rodrigo
In example 1, the first entity created is the datacenter (line 71),
and thus it gets id=2 and the second is the broker (line 74), which
gets id=3.
Userid is the brokerid.
Regards,
Rodrigo