tassl.application.workflow
Class WorkerForScheduler

java.lang.Object
  extended by 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)
           
 
Method Summary
 void addCost(double value)
           
 void addHours(double value)
           
 void addReadyToExecute(double value)
           
 void AddTask(java.lang.Integer task)
           
 double getAssignHours()
           
 double getCost()
           
 java.util.ArrayList getListTasks()
           
 int getListTasksSize()
           
 int getMachine_index()
           
 int getMachine_indexType()
           
 double getOverhead()
           
 double getPerformance()
           
 double getReadyToExecute()
           
 java.lang.String getSiteAddress()
           
 java.lang.String getSiteIdentifier()
           
 java.lang.String getSiteZone()
           
 java.lang.Integer getTask(int index)
           
 double getTaskCost()
           
 java.lang.String getType_name()
           
 int getWorker_index()
           
 boolean listOfTaskIsEmpty()
           
 void RemoveTask(java.lang.Integer taskId)
           
 void removeTime(double value)
           
 void setCost(double cost)
           
 void setHours(double hour)
           
 void setMachine_index(int machine_index)
           
 void setMachineTypeIndex(int machineIdexType)
           
 void setPerformance(double performance)
           
 void setReadyToExecute(double readyToExecute)
           
 void setSiteAddress(java.lang.String siteAddress)
           
 void setSiteIdentifier(java.lang.String siteIdentifier)
           
 void setSiteZone(java.lang.String siteZone)
           
 void setTime(int time)
           
 void setType_name(java.lang.String type_name)
           
 void setWorker_index(int worker_index)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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