Package org.cloudbus.cloudsim.core
Interface CustomerEntity
- All Superinterfaces:
ChangeableId
,Delayable
,Identifiable
,UniquelyIdentifiable
- All Known Implementing Classes:
CloudletAbstract
,CloudletSimple
,CustomerEntityAbstract
,NetworkCloudlet
,NetworkVm
,VmGroup
,VmSimple
- Author:
- raysaoliveira
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the absolute time the entity arrived at the broker, before being submitted to a Datacenter.Gets theDatacenterBroker
that represents the owner of this object.double
Gets the absolute time the entity was created into a Datacenter.Gets the last Datacenter where entity was tried to be created.Gets the CloudSim instance that represents the simulation the Entity is related to.double
Gets the total time the entity had to wait before being created, either due to a givensubmission delay
or because there was no suitable Host available after the VM submission.setArrivedTime
(double time) Sets the absolute time the entity arrived at the broker, before being submitted to a Datacenter.void
setBroker
(DatacenterBroker broker) Sets aDatacenterBroker
that represents the owner of this object.void
setLastTriedDatacenter
(Datacenter lastTriedDatacenter) Sets the last Datacenter where entity was tried to be created.Methods inherited from interface org.cloudbus.cloudsim.core.ChangeableId
setId
Methods inherited from interface org.cloudbus.cloudsim.core.Delayable
getSubmissionDelay, isDelayed, setSubmissionDelay
Methods inherited from interface org.cloudbus.cloudsim.core.Identifiable
getId
Methods inherited from interface org.cloudbus.cloudsim.core.UniquelyIdentifiable
getUid
-
Method Details
-
getBroker
DatacenterBroker getBroker()Gets theDatacenterBroker
that represents the owner of this object.- Returns:
- the broker or
DatacenterBroker.NULL
if a broker has not been set yet
-
setBroker
Sets aDatacenterBroker
that represents the owner of this object.- Parameters:
broker
- theDatacenterBroker
to set
-
getSimulation
Simulation getSimulation()Gets the CloudSim instance that represents the simulation the Entity is related to.- Returns:
-
setLastTriedDatacenter
Sets the last Datacenter where entity was tried to be created.- Parameters:
lastTriedDatacenter
-
-
getLastTriedDatacenter
Datacenter getLastTriedDatacenter()Gets the last Datacenter where entity was tried to be created. -
getArrivedTime
double getArrivedTime()Gets the absolute time the entity arrived at the broker, before being submitted to a Datacenter.- Returns:
- the arrived time (in seconds)
- See Also:
-
setArrivedTime
Sets the absolute time the entity arrived at the broker, before being submitted to a Datacenter.- Parameters:
time
- the time to set
-
getCreationTime
double getCreationTime()Gets the absolute time the entity was created into a Datacenter.- Returns:
- the creation time (in seconds)
- See Also:
-
getWaitTime
double getWaitTime()Gets the total time the entity had to wait before being created, either due to a givensubmission delay
or because there was no suitable Host available after the VM submission.- Returns:
- the total wait time (in seconds)
- See Also:
-