Class AbstractDistribution
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.TimeDistribution
,java.io.Serializable
,java.lang.Cloneable
public abstract class AbstractDistribution<T> implements TimeDistribution<T>
This class provides, through a template method pattern, an utility that ensures that the distribution does not trigger events before its initial scheduling time.
-
-
Constructor Summary
Constructors Constructor Description AbstractDistribution(Time start)
-
Method Summary
Modifier and Type Method Description final void
update(Time currentTime, boolean hasBeenExecuted, double additionalParameter, Environment<T, out Object> environment)
final Time
getNextOccurence()
abstract AbstractDistribution<T>
cloneOnNewNode(Node<T> destination, Time currentTime)
-
-
Method Detail
-
update
final void update(Time currentTime, boolean hasBeenExecuted, double additionalParameter, Environment<T, out Object> environment)
-
getNextOccurence
final Time getNextOccurence()
-
cloneOnNewNode
abstract AbstractDistribution<T> cloneOnNewNode(Node<T> destination, Time currentTime)
-
-
-
-