Package org.cloudbus.cloudsim.cloudlets
Class CloudletSimple
java.lang.Object
org.cloudbus.cloudsim.core.CustomerEntityAbstract
org.cloudbus.cloudsim.cloudlets.CloudletAbstract
org.cloudbus.cloudsim.cloudlets.CloudletSimple
- All Implemented Interfaces:
Comparable<Cloudlet>
,Cloudlet
,ChangeableId
,CustomerEntity
,Delayable
,Identifiable
,UniquelyIdentifiable
- Direct Known Subclasses:
NetworkCloudlet
Cloudlet implements the basic features of an application/job/task to be executed
by a
Vm
on behalf of a given user.- Since:
- CloudSim Toolkit 1.0
- Author:
- Rodrigo N. Calheiros, Anton Beloglazov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cloudbus.cloudsim.cloudlets.Cloudlet
Cloudlet.Status
-
Field Summary
Fields inherited from interface org.cloudbus.cloudsim.cloudlets.Cloudlet
NOT_ASSIGNED, NULL
-
Constructor Summary
ConstructorDescriptionCloudletSimple
(long length, int pesNumber) Creates a Cloudlet with no priority or id.CloudletSimple
(long length, int pesNumber, UtilizationModel utilizationModel) Creates a Cloudlet with no priority or id.CloudletSimple
(long length, long pesNumber) Creates a Cloudlet with no priority or id.CloudletSimple
(long id, long length, long pesNumber) Creates a Cloudlet with no priority, file size and output size equal to 1. -
Method Summary
Modifier and TypeMethodDescriptionint
Compare this Cloudlet with another one based onCloudletAbstract.getLength()
.toString()
Methods inherited from class org.cloudbus.cloudsim.cloudlets.CloudletAbstract
absLength, addFinishedLengthSoFar, addOnFinishListener, addOnStartListener, addOnUpdateProcessingListener, addRequiredFile, addRequiredFiles, assignToDatacenter, deleteRequiredFile, getAccumulatedBwCost, getActualCpuTime, getActualCpuTime, getArrivalTime, getCostPerBw, getCostPerSec, getCostPerSec, getExecStartTime, getFileSize, getFinishedLengthSoFar, getFinishedLengthSoFar, getFinishTime, getJobId, getLastDatacenterArrivalTime, getLastExecutedDatacenterIdx, getLength, getNetServiceLevel, getNumberOfPes, getOutputSize, getPriority, getRequiredFiles, getStatus, getSubmissionDelay, getTotalCost, getTotalLength, getUtilizationModel, getUtilizationModelBw, getUtilizationModelCpu, getUtilizationModelRam, getUtilizationOfBw, getUtilizationOfBw, getUtilizationOfCpu, getUtilizationOfCpu, getUtilizationOfRam, getUtilizationOfRam, getVm, getWaitingTime, getWallClockTime, hasRequiresFiles, isBoundToVm, isDelayed, isFinished, isReturnedToBroker, notifyOnUpdateProcessingListeners, registerArrivalInDatacenter, removeOnFinishListener, removeOnStartListener, removeOnUpdateProcessingListener, reset, setAccumulatedBwCost, setCostPerBw, setExecStartTime, setFileSize, setFinishTime, setJobId, setLastExecutedDatacenterIdx, setLength, setNetServiceLevel, setNumberOfPes, setOutputSize, setPriority, setRequiredFiles, setSizes, setStatus, setSubmissionDelay, setUtilizationModel, setUtilizationModelBw, setUtilizationModelCpu, setUtilizationModelRam, setVm, setWallClockTime
Methods inherited from class org.cloudbus.cloudsim.core.CustomerEntityAbstract
equals, getArrivedTime, getBroker, getCreationTime, getId, getLastTriedDatacenter, getSimulation, getUid, getWaitTime, hashCode, setArrivedTime, setBroker, setCreationTime, setCreationTime, setId, setLastTriedDatacenter
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.cloudbus.cloudsim.core.ChangeableId
setId
Methods inherited from interface org.cloudbus.cloudsim.core.CustomerEntity
getArrivedTime, getCreationTime, getLastTriedDatacenter, getSimulation, getWaitTime, setArrivedTime, setLastTriedDatacenter
Methods inherited from interface org.cloudbus.cloudsim.core.Identifiable
getId
Methods inherited from interface org.cloudbus.cloudsim.core.UniquelyIdentifiable
getUid
-
Constructor Details
-
CloudletSimple
Creates a Cloudlet with no priority or id. The id is defined when the Cloudlet is submitted to aDatacenterBroker
. The file size and output size is defined as 1.- Parameters:
length
- the length or size (in MI) of this cloudlet to be executed in a VM (check outCloudletAbstract.setLength(long)
)pesNumber
- number of PEs that Cloudlet will requireutilizationModel
- aUtilizationModel
to define how the Cloudlet uses CPU, RAM and BW. To define an independent utilization model for each resource, call the respective setters.- See Also:
-
CloudletSimple
public CloudletSimple(long length, int pesNumber) Creates a Cloudlet with no priority or id. The id is defined when the Cloudlet is submitted to aDatacenterBroker
. The file size and output size is defined as 1.NOTE: By default, the Cloudlet will use a
UtilizationModelFull
to define CPU utilization and aUtilizationModel.NULL
for RAM and BW. To change the default values, use the respective setters.- Parameters:
length
- the length or size (in MI) of this cloudlet to be executed in a VM (check outCloudletAbstract.setLength(long)
)pesNumber
- number of PEs that Cloudlet will require
-
CloudletSimple
public CloudletSimple(long length, long pesNumber) Creates a Cloudlet with no priority or id. The id is defined when the Cloudlet is submitted to aDatacenterBroker
. The file size and output size is defined as 1.NOTE: By default, the Cloudlet will use a
UtilizationModelFull
to define CPU utilization and aUtilizationModel.NULL
for RAM and BW. To change the default values, use the respective setters.- Parameters:
length
- the length or size (in MI) of this cloudlet to be executed in a VM (check outCloudletAbstract.setLength(long)
)pesNumber
- number of PEs that Cloudlet will require
-
CloudletSimple
public CloudletSimple(long id, long length, long pesNumber) Creates a Cloudlet with no priority, file size and output size equal to 1.NOTE: By default, the Cloudlet will use a
UtilizationModelFull
to define CPU utilization and aUtilizationModel.NULL
for RAM and BW. To change the default values, use the respective setters.- Parameters:
id
- the unique ID of this cloudletlength
- the length or size (in MI) of this cloudlet to be executed in a VM (check outCloudletAbstract.setLength(long)
)pesNumber
- the pes number
-
-
Method Details
-
toString
-
compareTo
Compare this Cloudlet with another one based onCloudletAbstract.getLength()
.- Parameters:
other
- the Cloudlet to compare to- Returns:
-