public class Task extends Cloudlet
| Constructor and Description |
|---|
Task(int taskId,
long taskLength)
Allocates a new Task object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Task task)
Adds a task to existing child list
|
void |
addChildList(java.util.List list)
Adds the list to existing child list
|
void |
addFile(File file)
Adds a file to existing file list
|
void |
addParent(Task task)
Adds a task to existing parent list
|
void |
addParentList(java.util.List list)
Adds the list to existing parent list
|
java.util.List<Task> |
getChildList()
Gets the child list of the task
|
int |
getDepth()
Gets the depth of the task
|
java.util.List |
getFileList()
Gets the list of the files
|
double |
getImpact()
Gets the impact of the task
|
java.util.List<Task> |
getParentList()
Gets the list of the parent tasks
|
int |
getPriority()
Gets the priority of the task
|
java.lang.String |
getType()
Gets the type of the task
|
void |
setChildList(java.util.List list)
Sets the child list of the task
|
void |
setDepth(int depth)
Sets the depth of the task
|
void |
setFileList(java.util.List<File> list)
Sets a file list
|
void |
setImpact(double impact)
Sets the impact factor
|
void |
setParentList(java.util.List list)
Sets the parent list of the task
|
void |
setPriority(int priority)
Sets the priority of the task
|
void |
setType(java.lang.String type)
Sets the type of the task
|
addRequiredFile, deleteRequiredFile, getActualCPUTime, getActualCPUTime, getAllResourceId, getAllResourceName, getClassType, getCloudletFileSize, getCloudletFinishedSoFar, getCloudletFinishedSoFar, getCloudletHistory, getCloudletId, getCloudletLength, getCloudletOutputSize, getCloudletStatus, getCloudletStatusString, getCloudletTotalLength, getCostPerSec, getCostPerSec, getExecStartTime, getFinishTime, getNetServiceLevel, getNumberOfPes, getProcessingCost, getRequiredFiles, getReservationId, getResourceById, getResourceId, getResourceName, getStatus, getStatusString, getSubmissionTime, getSubmissionTime, getUserId, getUtilizationModelBw, getUtilizationModelCpu, getUtilizationModelRam, getUtilizationOfBw, getUtilizationOfCpu, getUtilizationOfRam, getVmId, getWaitingTime, getWallClockTime, getWallClockTime, hasReserved, isFinished, requiresFiles, setClassType, setCloudletFinishedSoFar, setCloudletLength, setCloudletStatus, setExecParam, setExecStartTime, setNetServiceLevel, setNumberOfPes, setRequiredFiles, setReservationId, setResourceParameter, setResourceParameter, setSubmissionTime, setUserId, setUtilizationModelBw, setUtilizationModelCpu, setUtilizationModelRam, setVmId, writepublic Task(int taskId,
long taskLength)
taskId - the unique ID of this TasktaskLength - the length or size (in MI) of this task to be executed
in a PowerDatacenterpublic void setType(java.lang.String type)
type - the typepublic java.lang.String getType()
public void setPriority(int priority)
priority - the prioritypublic void setDepth(int depth)
depth - the depthpublic int getPriority()
public int getDepth()
public java.util.List<Task> getChildList()
public void setChildList(java.util.List list)
list, - child list of the taskpublic void setParentList(java.util.List list)
list, - parent list of the taskpublic void addChildList(java.util.List list)
list, - the child list to be addedpublic void addParentList(java.util.List list)
list, - the parent list to be addedpublic java.util.List<Task> getParentList()
public void addChild(Task task)
task, - the child task to be addedpublic void addParent(Task task)
task, - the parent task to be addedpublic java.util.List getFileList()
public void addFile(File file)
file, - the file to be addedpublic void setFileList(java.util.List<File> list)
list, - the file listpublic void setImpact(double impact)
impact, - the impact factorpublic double getImpact()