Package jasima.shopSim.prioRules.basic
Class ATC
- java.lang.Object
-
- jasima.shopSim.core.PR
-
- jasima.shopSim.prioRules.basic.ATC
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ATC extends PR
This class implements the Apparent Tardiness Costs rule by Vepsalainen and Morton (1987).- Author:
- Torsten Hildebrandt
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeCalc(PriorityQueue<?> q)Update procAvg and setupAvg before inherited method is called which in turn calls calcPrio(job).doublecalcPrio(PrioRuleTarget job)Returns the priority value ofentry.doublegetK()StringgetName()voidsetK(double k)-
Methods inherited from class jasima.shopSim.core.PR
arrivesTooLate, clone, getOwner, getTieBreaker, init, keepIdle, primaryRule, setFinalTieBreaker, setOwner, setTieBreaker, toString
-
-
-
-
Method Detail
-
beforeCalc
public void beforeCalc(PriorityQueue<?> q)
Update procAvg and setupAvg before inherited method is called which in turn calls calcPrio(job).- Overrides:
beforeCalcin classPR- Parameters:
q- The current queue.
-
calcPrio
public double calcPrio(PrioRuleTarget job)
Description copied from class:PRReturns the priority value ofentry. This method has to be overwritten by a priority rule.
-
getK
public double getK()
-
setK
public void setK(double k)
-
-