Class ECR

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class ECR
    extends PR
    This class implements the Enhanced Critical Ratio rule, developed by Chiang and Fu (2009), see also Pickardt and Branke (2012).
    Author:
    Christoph Pickardt, 2011-11-15
    See Also:
    Serialized Form
    • Field Detail

      • L

        public final double L
      • U

        public final double U
      • B

        public final double B
      • D

        public final double D
    • Constructor Detail

      • ECR

        public ECR​(double L,
                   double U,
                   double B,
                   double D)
    • Method Detail

      • 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.
      • 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
      • calculateUrgency

        public double calculateUrgency​(double r,
                                       double a)