Class RND

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class RND
    extends PR
    Implements the random rule, i.e., each waiting job has an equal chance of being selected.
    Author:
    Torsten Hildebrandt
    See Also:
    Serialized Form
    • Constructor Detail

      • RND

        public RND()
    • Method Detail

      • clone

        public PR clone()
        Overrides:
        clone 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.
      • calcPrio

        public double calcPrio​(PrioRuleTarget entry)
        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
      • getSeedModify

        public long getSeedModify()
      • setSeedModify

        public void setSeedModify​(long seedModify)
        Allows to modify the random number stream used. This allows to switch to a different seed independently from the base seed used for an experiment. Therefore this attribute allows to test different random decisions for a single base seed, which can be useful if the base seed determines a certain scenario and the aim is to quantify the performance of RND for exactly this scenario by averaging over many random decisions.