-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable
public interface TimeDistribution<T> implements Cloneable, Serializable
This interface represents a temporal distribution for any event.
-
-
Method Summary
Modifier and Type Method Description abstract voidupdate(Time currentTime, boolean executed, double param, Environment<T, out Object> environment)Updates the internal status. abstract TimegetNextOccurence()abstract doublegetRate()abstract TimeDistribution<T>cloneOnNewNode(Node<T> destination, Time currentTime)-
-
Method Detail
-
update
abstract void update(Time currentTime, boolean executed, double param, Environment<T, out Object> environment)
Updates the internal status.
- Parameters:
currentTime- current timeexecuted- true if the reaction has just been executedparam- a parameter passed by the reactionenvironment- the current environment
-
getNextOccurence
abstract Time getNextOccurence()
-
getRate
abstract double getRate()
-
cloneOnNewNode
abstract TimeDistribution<T> cloneOnNewNode(Node<T> destination, Time currentTime)
- Parameters:
destination- the node where the newly created time distribution will be placedcurrentTime- the time at which the cloning operation happened
-
-
-
-