Class AdaptiveLAThreshold

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class AdaptiveLAThreshold
    extends LookaheadThreshold
    This class implements a rule with a max waiting time threshold value specified relative to the minimum time it takes to process any job waiting in the queue. maxWaitRelative has to be in the range [0,1]. The maximal useful waiting time actually is even a little smaller than 1: if a job arrives in say 10 time units, but to process the shortest job in queue also takes 10 time units, it could be finished exactly when the lookahead job arrives.

    This class does not take setup times into account.

    Author:
    Torsten Hildebrandt
    See Also:
    Serialized Form
    • Constructor Detail

      • AdaptiveLAThreshold

        public AdaptiveLAThreshold​(PR baseRule)
      • AdaptiveLAThreshold

        public AdaptiveLAThreshold​(double maxWaitRelative)
      • AdaptiveLAThreshold

        public AdaptiveLAThreshold​(PR baseRule,
                                   double maxWaitRelative)
    • 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.
      • maxProcTimeWaiting

        public double maxProcTimeWaiting​(PriorityQueue<?> q)
      • getMaxWaitRelative

        public double getMaxWaitRelative()
      • setMaxWaitRelative

        public void setMaxWaitRelative​(double maxWaitRelative)