Package org.cloudbus.cloudsim.core
Interface Delayable
- All Known Subinterfaces:
Cloudlet
,CustomerEntity
,Vm
- All Known Implementing Classes:
CloudletAbstract
,CloudletSimple
,CustomerEntityAbstract
,NetworkCloudlet
,NetworkVm
,VmGroup
,VmSimple
public interface Delayable
Defines methods for an object that its execution can be delayed by some time
when it is submitted to a
Datacenter
by a DatacenterBroker
.-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the time (in seconds) that aDatacenterBroker
will wait to submit the entity to a Datacenter, in order to request the creation of the object.boolean
Checks if this object has a submission delay or notvoid
setSubmissionDelay
(double submissionDelay) Sets a relative time (in seconds), from current simulation time, that aDatacenterBroker
will wait to submit the entity to a Datacenter, in order to request the creation of the object.
-
Method Details
-
getSubmissionDelay
double getSubmissionDelay()Gets the time (in seconds) that aDatacenterBroker
will wait to submit the entity to a Datacenter, in order to request the creation of the object. This is a relative time from the current simulation time.- Returns:
- the submission delay (in seconds)
-
setSubmissionDelay
void setSubmissionDelay(double submissionDelay) Sets a relative time (in seconds), from current simulation time, that aDatacenterBroker
will wait to submit the entity to a Datacenter, in order to request the creation of the object. This is a relative time from the current simulation time.- Parameters:
submissionDelay
- the amount of seconds from the current simulation time that the object will wait to be submitted
-
isDelayed
boolean isDelayed()Checks if this object has a submission delay or not- Returns:
-