Package jasima.shopSim.prioRules.meta
Class Inverse
- java.lang.Object
-
- jasima.shopSim.core.PR
-
- jasima.shopSim.prioRules.meta.Inverse
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Inverse extends PR
Negates the value of the base rule. This way FCFS becomes LCFS, Shortest Processing Time first becomes Longest Processing Time first etc.- Author:
- Torsten Hildebrandt
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeCalc(PriorityQueue<?> q)This method is called by a queue before evaluating it's elements.doublecalcPrio(PrioRuleTarget j)Returns the priority value ofentry.PRclone()PRgetBaseRule()StringgetName()voidsetBaseRule(PR base)PRsetOwner(WorkStation o)-
Methods inherited from class jasima.shopSim.core.PR
arrivesTooLate, getOwner, getTieBreaker, init, keepIdle, primaryRule, setFinalTieBreaker, setTieBreaker, toString
-
-
-
-
Constructor Detail
-
Inverse
public Inverse()
-
Inverse
public Inverse(PR baseRule)
-
-
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.
-
beforeCalc
public void beforeCalc(PriorityQueue<?> q)
Description copied from class:PRThis method is called by a queue before evaluating it's elements. Use it to do some initialization prior to calcPrio().- Overrides:
beforeCalcin classPR- Parameters:
q- The current queue.
-
setOwner
public PR setOwner(WorkStation o)
-
getBaseRule
public PR getBaseRule()
-
setBaseRule
public void setBaseRule(PR base)
-
-