public class Task
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
dEFT
Time ranges for estimating start- and end-task executions.
|
double |
dEST
Time ranges for estimating start- and end-task executions.
|
java.lang.Double |
dExT |
double |
dLFT
Time ranges for estimating start- and end-task executions.
|
double |
dLST
Time ranges for estimating start- and end-task executions.
|
java.util.Date |
execEndTime |
java.util.Date |
execStartTime
Tasks details extracted from tracer files used for building task dependence..,
It should be killed before scheduling process for enhancing performance
|
java.util.ArrayList<java.lang.Integer> |
predecessors |
java.util.ArrayList<java.lang.Integer> |
successors |
static java.util.Comparator<Task> |
taskESTComparator
Comparator for sorting the list by Tasks based on dEST
|
Constructor and Description |
---|
Task()
Class constructor and general getters/setters methods
|
Task(int iTaskid) |
Modifier and Type | Method and Description |
---|---|
void |
addResource(Resource res) |
protected void |
cleanUnnecessaryAttributes() |
App |
getApp() |
double |
getComputingSize() |
double |
getdCommunicationCostForActualExE() |
double |
getExecutedComputingSize() |
int |
getiRequiredCPUs() |
java.util.ArrayList<Resource> |
getResources() |
int |
getTaskID() |
SimExecution |
getTScheduler()
Getter and setter of TScheduler must be invoked by only chosen cloud
|
java.lang.String |
getType() |
boolean |
isCritical() |
boolean |
isEntry() |
boolean |
isExit() |
void |
setAppRef(App AppRef) |
void |
setCommunicationCostForActualExE(double dCommunicationCostExE) |
void |
setTaskComputingSizeAndCPUs(double DTaskComputingSize,
int iCPUs) |
void |
setTaskID(int iTaskid) |
void |
setTaskScheduler(SimExecution TScheduler)
This method must be called by only :
public void SimExecution.setScheduled()
|
void |
setTaskType(java.lang.String tType) |
void |
setTimes(java.util.Date ExecStartTime,
java.util.Date ExecEndTime) |
void |
setToBeCritical() |
java.lang.String |
toString() |
public java.util.Date execStartTime
public java.util.Date execEndTime
public java.util.ArrayList<java.lang.Integer> predecessors
public java.util.ArrayList<java.lang.Integer> successors
public double dEST
public double dEFT
public double dLST
public double dLFT
public java.lang.Double dExT
public static java.util.Comparator<Task> taskESTComparator
public Task()
public Task(int iTaskid)
public App getApp()
public void setAppRef(App AppRef)
public int getTaskID()
public void setTaskID(int iTaskid)
public void addResource(Resource res)
public java.util.ArrayList<Resource> getResources()
public void setCommunicationCostForActualExE(double dCommunicationCostExE)
public double getdCommunicationCostForActualExE()
public java.lang.String getType()
public void setTaskType(java.lang.String tType)
public void setTimes(java.util.Date ExecStartTime, java.util.Date ExecEndTime)
protected void cleanUnnecessaryAttributes()
public SimExecution getTScheduler()
public void setTaskScheduler(SimExecution TScheduler)
TScheduler
- public boolean isEntry()
public boolean isExit()
public void setToBeCritical()
public boolean isCritical()
public int getiRequiredCPUs()
public double getComputingSize()
public void setTaskComputingSizeAndCPUs(double DTaskComputingSize, int iCPUs)
public double getExecutedComputingSize()
public java.lang.String toString()
toString
in class java.lang.Object