Class LDParameter
java.lang.Object
NetStrategies.ServiceStrategies.LDParameter
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionLDParameter(Integer from, Distribution distr, Parameter parameter) Construct a new Load Dependent Service Strategy parameterLDParameter(Integer from, Distribution distr, Parameter parameter, String function) Construct a new Load Dependent Service Strategy parameter -
Method Summary
Modifier and TypeMethodDescriptionintCompares this object with the specified object for order.Gets distribution used to evaluate service timeGets the parameter of the distribution used to evaluate service timeGets the function that must be used to evaluate mean valueintGets minimum number of jobs for this strategy to applyGets the parser that must be used to evaluate mean valuevoidsetRandomEngine(RandomEngine randomEngine)
-
Constructor Details
-
LDParameter
Construct a new Load Dependent Service Strategy parameter- Parameters:
from- minimum number of jobs for this strategy to applydistr- service time distributionparameter- parameter for the service time distributionfunction- function to be evaluated to set service time distribution mean value
-
LDParameter
Construct a new Load Dependent Service Strategy parameter- Parameters:
from- minimum number of jobs for this strategy to applydistr- service time distributionparameter- 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
Gets distribution used to evaluate service time- Returns:
- distribution used to evaluate service times
-
getDistrParameter
Gets the parameter of the distribution used to evaluate service time- Returns:
- the parameter of the distribution used to evaluate service times
-
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
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
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:
compareToin interfaceComparable<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
-