Class LoadDependentStrategy
java.lang.Object
NetStrategies.ServiceStrategy
NetStrategies.ServiceStrategies.LoadDependentStrategy
- All Implemented Interfaces:
AutoCheck
Title: Load Dependent Service Time Strategy
Description: This is a load dependent implementation of ServiceStrategy,
useful to model macro-portion of network into a single station and to model local
area networks.
- Author:
- Bertoli Marco Date: 6-ott-2005 Time: 16.37.36
-
Constructor Summary
ConstructorsConstructorDescriptionLoadDependentStrategy(LDParameter[] parameters) Creates a new Load Dependent Service Time Strategy -
Method Summary
Modifier and TypeMethodDescriptiondoubleexpect(NodeSection nodeSection, JobClass jobClass) Calculates the service mean using the specified parametersUsed mainly for the Balking class.doublewait(NodeSection nodeSection, JobClass jobClass) Calculates the service time using the specified parametersMethods inherited from class ServiceStrategy
check
-
Constructor Details
-
LoadDependentStrategy
Creates a new Load Dependent Service Time Strategy- Parameters:
parameters- an array with all parameters in LDParameter format
-
-
Method Details
-
wait
Calculates the service time using the specified parameters- Specified by:
waitin classServiceStrategy- Parameters:
nodeSection- the node section which applies this strategyjobClass- the job class which follows this strategy- Returns:
- the value of service time
- Throws:
NetException
-
expect
Calculates the service mean using the specified parameters- Specified by:
expectin classServiceStrategy- Parameters:
nodeSection- the node section which applies this strategyjobClass- the job class which follows this strategy- Returns:
- the value of service mean
- Throws:
NetException
-
getParameters
Used mainly for the Balking class.- Returns:
- parameters variable
-