Class LDParameter

java.lang.Object
NetStrategies.ServiceStrategies.LDParameter
All Implemented Interfaces:
Comparable<Object>

public class LDParameter extends Object implements Comparable<Object>

Title: Load Dependent Service Time Strategy Parameter

Description: Parameter used to specify a sample for Load Dependent service time strategy. This is supposed to hold a range of values, a distribution and a function that have to be evaluated to set mean value for given distribution.

Author:
Bertoli Marco Date: 10-ott-2005 Time: 14.58.33
  • Constructor Details

    • LDParameter

      public LDParameter(Integer from, Distribution distr, Parameter parameter, String function)
      Construct a new Load Dependent Service Strategy parameter
      Parameters:
      from - minimum number of jobs for this strategy to apply
      distr - service time distribution
      parameter - parameter for the service time distribution
      function - function to be evaluated to set service time distribution mean value
    • LDParameter

      public LDParameter(Integer from, Distribution distr, Parameter parameter)
      Construct a new Load Dependent Service Strategy parameter
      Parameters:
      from - minimum number of jobs for this strategy to apply
      distr - service time distribution
      parameter - parameter for the service time distribution
  • Method Details

    • getMinJobs

      public int getMinJobs()
      Gets minimum number of jobs for this strategy to apply
      Returns:
      minimum number of jobs for this strategy to apply
    • getDistribution

      public Distribution getDistribution()
      Gets distribution used to evaluate service time
      Returns:
      distribution used to evaluate service times
    • getDistrParameter

      public Parameter getDistrParameter()
      Gets the parameter of the distribution used to evaluate service time
      Returns:
      the parameter of the distribution used to evaluate service times
    • getFunction

      public String getFunction()
      Gets the function that must be used to evaluate mean value
      Returns:
      function to be evaluated to find mean value or null if not present
    • getParser

      public Parser getParser()
      Gets the parser that must be used to evaluate mean value
      Returns:
      parser to be used to evaluate mean value or null if not present
    • compareTo

      public int compareTo(Object o)
      Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

      Specified by:
      compareTo in interface Comparable<Object>
      Parameters:
      o - the Object to be compared.
      Returns:
      a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
      Throws:
      ClassCastException - if the specified object's type prevents it from being compared to this Object.
    • setRandomEngine

      public void setRandomEngine(RandomEngine randomEngine)