Package jasima.shopSim.prioRules.basic
Class TieBreakerFASFS
- java.lang.Object
-
- jasima.shopSim.core.PR
-
- jasima.shopSim.prioRules.basic.TieBreakerFASFS
-
- All Implemented Interfaces:
Serializable,Cloneable
public class TieBreakerFASFS extends PR
This class implements a rule that sequences job in increasing order of their job number. As this attribute strongly correlates to the time of arrival, the rule operates similarly toFASFS. However, there are subtle differences between the two implementations. With the FASFS rule, jobs can have equal priorities if they arrived at exactly the same instant. Therefore, this rule is preferred as a final tie-breaker as it ensures a deterministic order.- Author:
- Torsten Hildebrandt
- See Also:
FASFS, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TieBreakerFASFS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalcPrio(PrioRuleTarget j)Returns the priority value ofentry.-
Methods inherited from class jasima.shopSim.core.PR
arrivesTooLate, beforeCalc, clone, getName, getOwner, getTieBreaker, init, keepIdle, primaryRule, setFinalTieBreaker, setOwner, setTieBreaker, toString
-
-
-
-
Method Detail
-
calcPrio
public double calcPrio(PrioRuleTarget j)
Description copied from class:PRReturns the priority value ofentry. This method has to be overwritten by a priority rule.
-
-