Class WeibullTime
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.TimeDistribution
,java.io.Serializable
,java.lang.Cloneable
public class WeibullTime<T> extends AbstractDistribution<T>
Weibull distributed events.
-
-
Constructor Summary
Constructors Constructor Description WeibullTime(double mean, double deviation, RandomGenerator random)
WeibullTime(double mean, double deviation, Time start, RandomGenerator random)
WeibullTime(double shapeParameter, double scaleParameter, double offsetParameter, Time start, RandomGenerator random)
-
Method Summary
Modifier and Type Method Description final void
updateStatus(Time currentTime, boolean executed, double param, Environment<T, out Object> environment)
Implement this method to update the distribution's internal status. double
getMean()
double
getDeviation()
final double
getRate()
WeibullTime<T>
cloneOnNewNode(@Nonnull() Node<T> destination, @Nonnull() Time currentTime)
-
Methods inherited from class it.unibo.alchemist.model.timedistributions.AbstractDistribution
getNextOccurence, update
-
Methods inherited from class it.unibo.alchemist.model.TimeDistribution
cloneOnNewNode, getNextOccurence, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
WeibullTime
WeibullTime(double mean, double deviation, RandomGenerator random)
- Parameters:
mean
- mean for this distributiondeviation
- standard deviation for this distributionrandom
- RandomGenerator used internally
-
WeibullTime
WeibullTime(double mean, double deviation, Time start, RandomGenerator random)
- Parameters:
mean
- mean for this distributiondeviation
- standard deviation for this distributionstart
- initial timerandom
- RandomGenerator used internally
-
WeibullTime
WeibullTime(double shapeParameter, double scaleParameter, double offsetParameter, Time start, RandomGenerator random)
- Parameters:
shapeParameter
- shape parameter for this distributionscaleParameter
- shape parameter for this distributionoffsetParameter
- minimum possible time interval for this distributionstart
- initial timerandom
- RandomGenerator used internally
-
-
Method Detail
-
updateStatus
final void updateStatus(Time currentTime, boolean executed, double param, Environment<T, out Object> environment)
Implement this method to update the distribution's internal status.
- Parameters:
currentTime
- current timeexecuted
- true if the reaction whose this distribution has been associated has just been executedparam
- optional parameter passed by the reactionenvironment
- the current environment
-
getMean
double getMean()
- Returns:
the mean for this distribution.
-
getDeviation
double getDeviation()
- Returns:
the standard deviation for this distribution.
-
getRate
final double getRate()
-
cloneOnNewNode
WeibullTime<T> cloneOnNewNode(@Nonnull() Node<T> destination, @Nonnull() Time currentTime)
-
-
-
-