Class AbstractDistribution
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.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(@Nonnull() Time currentTime, boolean hasBeenExecuted, double additionalParameter, @Nonnull() Environment<T, out Object> environment)
final Time
getNextOccurence()
abstract AbstractDistribution<T>
cloneOnNewNode(@Nonnull() Node<T> destination, @Nonnull() Time currentTime)
-
-
Constructor Detail
-
AbstractDistribution
AbstractDistribution(Time start)
- Parameters:
start
- initial time
-
-
Method Detail
-
update
final void update(@Nonnull() Time currentTime, boolean hasBeenExecuted, double additionalParameter, @Nonnull() Environment<T, out Object> environment)
-
getNextOccurence
final Time getNextOccurence()
-
cloneOnNewNode
abstract AbstractDistribution<T> cloneOnNewNode(@Nonnull() Node<T> destination, @Nonnull() Time currentTime)
-
-
-
-