Class ZeroServiceTimeStrategy
java.lang.Object
NetStrategies.ServiceStrategy
NetStrategies.ServiceStrategies.ZeroServiceTimeStrategy
- All Implemented Interfaces:
AutoCheck
This service strategy always returns a service time equal to 0.0.
- Author:
- Stefano Omini
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleexpect(NodeSection nodeSection, JobClass jobClass) Returns the service mean, which is always equal to 0.0.doublewait(NodeSection nodeSection, JobClass jobClass) Returns the service time, which is always equal to 0.0.Methods inherited from class ServiceStrategy
check
-
Constructor Details
-
ZeroServiceTimeStrategy
public ZeroServiceTimeStrategy()Creates a new instance of ServiceTime.
-
-
Method Details
-
wait
Returns the service time, which is always equal to 0.0.- Specified by:
waitin classServiceStrategy- Parameters:
nodeSection- the node section which applies this strategy.jobClass- the job class which follows this strategy.- Returns:
- the value of service time.
- Throws:
NetException
-
expect
Returns the service mean, which is always equal to 0.0.- Specified by:
expectin classServiceStrategy- Parameters:
nodeSection- the node section which applies this strategy.jobClass- the job class which follows this strategy.- Returns:
- the value of service mean.
- Throws:
NetException
-