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
public class CloudletSimple extends CloudletAbstract
Cloudlet implements the basic features of an application/job/task to be executed by aVm
on behalf of a given user. It stores, despite all the information encapsulated in the Cloudlet, the ID of the VM running it.- Since:
- CloudSim Toolkit 1.0
- Author:
- Rodrigo N. Calheiros, Anton Beloglazov
- See Also:
DatacenterBroker
-
-
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
Constructors Constructor Description CloudletSimple(long length, int pesNumber)
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 and file size and output size equal to 1.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Cloudlet o)
Compare this Cloudlet with another one based onCloudletAbstract.getLength()
.String
toString()
-
Methods inherited from class org.cloudbus.cloudsim.cloudlets.CloudletAbstract
absLength, addFinishedLengthSoFar, addOnFinishListener, addOnStartListener, addOnUpdateProcessingListener, addRequiredFile, addRequiredFiles, assignToDatacenter, deleteRequiredFile, equals, getAccumulatedBwCost, getActualCpuTime, getActualCpuTime, getArrivalTime, getCostPerBw, getCostPerSec, getCostPerSec, getExecStartTime, getFileSize, getFinishedLengthSoFar, getFinishedLengthSoFar, getFinishTime, getJobId, getLastDatacenter, getLastDatacenterArrivalTime, getLastExecutedDatacenterIdx, getLength, getNetServiceLevel, getNumberOfPes, getOutputSize, getPriority, getRequiredFiles, getStatus, getSubmissionDelay, getTotalCost, getTotalLength, getUtilizationModelBw, getUtilizationModelCpu, getUtilizationModelRam, getUtilizationOfBw, getUtilizationOfBw, getUtilizationOfCpu, getUtilizationOfCpu, getUtilizationOfRam, getUtilizationOfRam, getVm, getWaitingTime, getWallClockTime, getWallClockTimeInLastExecutedDatacenter, isAssignedToDatacenter, isBindToVm, isFinished, notifyOnUpdateProcessingListeners, registerArrivalInDatacenter, removeOnFinishListener, removeOnStartListener, removeOnUpdateProcessingListener, requiresFiles, setAccumulatedBwCost, setCostPerBw, setExecStartTime, setFileSize, setFinishTime, setJobId, setLastExecutedDatacenterIdx, setLength, setNetServiceLevel, setNumberOfPes, setOutputSize, setPriority, setRequiredFiles, setStatus, setSubmissionDelay, setUtilizationModel, setUtilizationModelBw, setUtilizationModelCpu, setUtilizationModelRam, setVm, setWallClockTime
-
Methods inherited from class org.cloudbus.cloudsim.core.CustomerEntityAbstract
getBroker, getId, getSimulation, getUid, hashCode, setBroker, setId
-
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
getSimulation
-
Methods inherited from interface org.cloudbus.cloudsim.core.Identifiable
getId
-
Methods inherited from interface org.cloudbus.cloudsim.core.UniquelyIdentifiable
getUid
-
-
-
-
Constructor Detail
-
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.- 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.- 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 and file size and output size equal to 1. To change these 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 Detail
-
compareTo
public int compareTo(Cloudlet o)
Compare this Cloudlet with another one based onCloudletAbstract.getLength()
.- Parameters:
o
- the Cloudlet to compare to- Returns:
-
-