Class BernoulliVacationStrategy
java.lang.Object
NetStrategies.VacationStrategies.VacationWhenIdleStrategy
NetStrategies.VacationStrategies.BernoulliVacationStrategy
- All Implemented Interfaces:
VacationStrategy
Vacation strategy in which the server takes a vacation after each service completion with a given (Bernoulli) probability.
-
Field Summary
Fields inherited from class VacationWhenIdleStrategy
MULTIPLE_VACATION, SINGLE_VACATION -
Constructor Summary
ConstructorsConstructorDescriptionBernoulliVacationStrategy(Double p, Distribution vacationTimeDistr, Parameter vacationTimePar) -
Method Summary
Methods inherited from class VacationWhenIdleStrategy
getType
-
Constructor Details
-
BernoulliVacationStrategy
public BernoulliVacationStrategy(Double p, Distribution vacationTimeDistr, Parameter vacationTimePar) throws NetException - Throws:
NetException
-
-
Method Details
-
nextVacationLength
- Specified by:
nextVacationLengthin interfaceVacationStrategy- Overrides:
nextVacationLengthin classVacationWhenIdleStrategy- Throws:
NetException
-
nextRandBool
public boolean nextRandBool()
-