Package jasima.shopSim.prioRules.meta
Class FixedLAThreshold
- java.lang.Object
-
- jasima.shopSim.core.PR
-
- jasima.shopSim.prioRules.meta.LookaheadThreshold
-
- jasima.shopSim.prioRules.meta.FixedLAThreshold
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
IgnoreFutureJobs
public class FixedLAThreshold extends LookaheadThreshold
This class implements a rule that assigns a lower priority to any lookahead job arriving later than a given threshold value.- Author:
- Christoph Pickardt, 2011-11-15
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FixedLAThreshold(PR baseRule)FixedLAThreshold(PR baseRule, double maxWait)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanarrivesTooLate(PrioRuleTarget prt)doublegetMaxWait()StringgetName()voidsetMaxWait(double maxWait)voidsetTieBreaker(PR tieBreaker)Sets the tie breaker rule to use.-
Methods inherited from class jasima.shopSim.prioRules.meta.LookaheadThreshold
arrivesTooLate, calcPrio
-
Methods inherited from class jasima.shopSim.core.PR
beforeCalc, clone, getOwner, getTieBreaker, init, keepIdle, primaryRule, setFinalTieBreaker, setOwner, toString
-
-
-
-
Method Detail
-
arrivesTooLate
public boolean arrivesTooLate(PrioRuleTarget prt)
- Specified by:
arrivesTooLatein classLookaheadThreshold
-
setTieBreaker
public void setTieBreaker(PR tieBreaker)
Description copied from class:PRSets the tie breaker rule to use.- Overrides:
setTieBreakerin classPR- Parameters:
tieBreaker- The tie-breaker to use.
-
getMaxWait
public double getMaxWait()
-
setMaxWait
public void setMaxWait(double maxWait)
-
-