Package jasima.shopSim.core
Class Batch
- java.lang.Object
-
- jasima.shopSim.core.PrioRuleTarget
-
- jasima.shopSim.core.Batch
-
- All Implemented Interfaces:
ValueStore
public class Batch extends PrioRuleTarget
A batch is a temporary collection of jobs to be processed together in a single operation.- Author:
- Torsten Hildebrandt
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToBatch(Job job)voidclear()BatchcreateCopy()doublecurrProcTime()doublegetArriveTime()OperationgetCurrentOperation()doublegetCurrentOperationDueDate()WorkStationgetCurrMachine()doublegetDueDate()doublegetEarliestODD()intgetJobNum()Returns the minimum job number of all jobs contained in the batch.StringgetName()Operation[]getOps()doublegetRelDate()ShopgetShop()intgetTaskNumber()doublegetTotalWeight()doublegetWeight()Returns the average weight of contained Jobs.booleanisBatch()booleanisFuture()Jobjob(int i)intnumJobsInBatch()intnumOps()intnumOpsLeft()doubleprocSum()doubleremainingProcTime()Returns the average remaining processing time of contained Jobs.voidsetName(String name)StringtoString()ValueStorevalueStoreImpl()Returns the implementation to use for adding ValueStore functionality.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jasima.core.util.ValueStore
valueStoreContains, valueStoreGet, valueStoreGet, valueStoreGetAllKeys, valueStoreGetNumKeys, valueStorePut, valueStoreRemove, valueStoreUpdate
-
-
-
-
Constructor Detail
-
Batch
public Batch(Shop shop)
-
-
Method Detail
-
addToBatch
public void addToBatch(Job job)
-
clear
public void clear()
-
numJobsInBatch
public int numJobsInBatch()
- Specified by:
numJobsInBatchin classPrioRuleTarget
-
job
public Job job(int i)
- Specified by:
jobin classPrioRuleTarget
-
isFuture
public boolean isFuture()
- Specified by:
isFuturein classPrioRuleTarget
-
createCopy
public Batch createCopy()
-
valueStoreImpl
public ValueStore valueStoreImpl()
Description copied from interface:ValueStoreReturns the implementation to use for adding ValueStore functionality.
-
getEarliestODD
public double getEarliestODD()
-
getTotalWeight
public double getTotalWeight()
-
currProcTime
public double currProcTime()
- Specified by:
currProcTimein classPrioRuleTarget
-
getArriveTime
public double getArriveTime()
- Specified by:
getArriveTimein classPrioRuleTarget
-
getCurrMachine
public WorkStation getCurrMachine()
- Specified by:
getCurrMachinein classPrioRuleTarget
-
getCurrentOperation
public Operation getCurrentOperation()
- Specified by:
getCurrentOperationin classPrioRuleTarget
-
getDueDate
public double getDueDate()
- Specified by:
getDueDatein classPrioRuleTarget
-
getJobNum
public int getJobNum()
Returns the minimum job number of all jobs contained in the batch.- Specified by:
getJobNumin classPrioRuleTarget
-
getCurrentOperationDueDate
public double getCurrentOperationDueDate()
- Specified by:
getCurrentOperationDueDatein classPrioRuleTarget
-
getOps
public Operation[] getOps()
- Specified by:
getOpsin classPrioRuleTarget
-
getRelDate
public double getRelDate()
- Specified by:
getRelDatein classPrioRuleTarget
-
getShop
public Shop getShop()
- Specified by:
getShopin classPrioRuleTarget
-
getTaskNumber
public int getTaskNumber()
- Specified by:
getTaskNumberin classPrioRuleTarget
-
getWeight
public double getWeight()
Returns the average weight of contained Jobs.- Specified by:
getWeightin classPrioRuleTarget
-
numOps
public int numOps()
- Specified by:
numOpsin classPrioRuleTarget
-
numOpsLeft
public int numOpsLeft()
- Specified by:
numOpsLeftin classPrioRuleTarget
-
procSum
public double procSum()
- Specified by:
procSumin classPrioRuleTarget
-
remainingProcTime
public double remainingProcTime()
Returns the average remaining processing time of contained Jobs.- Specified by:
remainingProcTimein classPrioRuleTarget
-
isBatch
public boolean isBatch()
- Specified by:
isBatchin classPrioRuleTarget
-
getName
public String getName()
- Specified by:
getNamein classPrioRuleTarget
-
setName
public void setName(String name)
-
-