Class 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
    • Constructor Detail

      • Inverse

        public Inverse()
      • Inverse

        public Inverse​(PR baseRule)
    • Method Detail

      • calcPrio

        public double calcPrio​(PrioRuleTarget j)
        Description copied from class: PR
        Returns the priority value of entry. This method has to be overwritten by a priority rule.
        Specified by:
        calcPrio in class PR
      • beforeCalc

        public void beforeCalc​(PriorityQueue<?> q)
        Description copied from class: PR
        This method is called by a queue before evaluating it's elements. Use it to do some initialization prior to calcPrio().
        Overrides:
        beforeCalc in class PR
        Parameters:
        q - The current queue.
      • clone

        public PR clone()
        Overrides:
        clone in class PR
      • getBaseRule

        public PR getBaseRule()
      • setBaseRule

        public void setBaseRule​(PR base)