tassl.application.workflow
Class WorkerForScheduler
java.lang.Object
tassl.application.workflow.WorkerForScheduler
public class WorkerForScheduler
- extends java.lang.Object
This class is used by the scheduling algorithms to know how many workers we have.
A single machine can have multiple workers and therefore are considered as two slots in that machine.
Constructor Summary |
WorkerForScheduler(java.lang.String siteAddress,
java.lang.String siteIdentifier,
java.lang.String zone,
java.lang.String type_name,
int machine_index,
int worker_index,
double readyToExecute,
double overhead)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WorkerForScheduler
public WorkerForScheduler(java.lang.String siteAddress,
java.lang.String siteIdentifier,
java.lang.String zone,
java.lang.String type_name,
int machine_index,
int worker_index,
double readyToExecute,
double overhead)
setTime
public void setTime(int time)
listOfTaskIsEmpty
public boolean listOfTaskIsEmpty()
AddTask
public void AddTask(java.lang.Integer task)
getTask
public java.lang.Integer getTask(int index)
RemoveTask
public void RemoveTask(java.lang.Integer taskId)
getOverhead
public double getOverhead()
getPerformance
public double getPerformance()
getCost
public double getCost()
getListTasksSize
public int getListTasksSize()
getListTasks
public java.util.ArrayList getListTasks()
getTaskCost
public double getTaskCost()
getAssignHours
public double getAssignHours()
getSiteAddress
public java.lang.String getSiteAddress()
getSiteIdentifier
public java.lang.String getSiteIdentifier()
getSiteZone
public java.lang.String getSiteZone()
getReadyToExecute
public double getReadyToExecute()
getType_name
public java.lang.String getType_name()
getMachine_index
public int getMachine_index()
getMachine_indexType
public int getMachine_indexType()
getWorker_index
public int getWorker_index()
setSiteAddress
public void setSiteAddress(java.lang.String siteAddress)
setSiteIdentifier
public void setSiteIdentifier(java.lang.String siteIdentifier)
setSiteZone
public void setSiteZone(java.lang.String siteZone)
setMachineTypeIndex
public void setMachineTypeIndex(int machineIdexType)
setReadyToExecute
public void setReadyToExecute(double readyToExecute)
setType_name
public void setType_name(java.lang.String type_name)
setMachine_index
public void setMachine_index(int machine_index)
setWorker_index
public void setWorker_index(int worker_index)
setPerformance
public void setPerformance(double performance)
setCost
public void setCost(double cost)
addReadyToExecute
public void addReadyToExecute(double value)
addCost
public void addCost(double value)
addHours
public void addHours(double value)
setHours
public void setHours(double hour)
removeTime
public void removeTime(double value)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object