-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.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 voidupdateStatus(Time currentTime, boolean executed, double param, Environment<T, out Object> environment)Implement this method to update the distribution's internal status. doublegetMean()doublegetDeviation()final doublegetRate()WeibullTime<T>cloneOnNewNode(Node<T> destination, Time currentTime)-
Methods inherited from class it.unibo.alchemist.model.implementations.timedistributions.AbstractDistribution
getNextOccurence, update -
Methods inherited from class it.unibo.alchemist.model.interfaces.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()
-
getDeviation
double getDeviation()
-
getRate
final double getRate()
-
cloneOnNewNode
WeibullTime<T> cloneOnNewNode(Node<T> destination, Time currentTime)
-
-
-
-