Class CloudletExecutionTask
java.lang.Object
org.cloudsimplus.cloudlets.network.CloudletTask
org.cloudsimplus.cloudlets.network.CloudletExecutionTask
- All Implemented Interfaces:
Identifiable
A processing task that can be executed by a
NetworkCloudlet
in a single Pe.
The tasks currently just execute in a sequential manner.
Please refer to the following publication for more details:
- Since:
- CloudSim Toolkit 1.0
- Author:
- Saurabh Kumar Garg, Manoel Campos da Silva Filho
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(long partialFinishedMI) Sets a given number of MI to theby the cloudlet.invalid reference
total MI executed so farMethods inherited from class org.cloudsimplus.cloudlets.network.CloudletTask
isActive, isExecutionTask, isFinished, isReceiveTask, isSendTask, setFinishedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudsimplus.core.Identifiable
getId
-
Constructor Details
-
CloudletExecutionTask
public CloudletExecutionTask(int id, long executionLength) Creates a new task.- Parameters:
id- id to assign to the taskexecutionLength- the execution length of the task (in MI)
-
-
Method Details
-
process
public boolean process(long partialFinishedMI) Sets a given number of MI to theby the cloudlet.invalid reference
total MI executed so far- Parameters:
partialFinishedMI- the partial executed length of this Cloudlet (in MI)- Returns:
- true if the MI value is valid (greater than zero), false otherwise
-