Class Event
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Actionable
,it.unibo.alchemist.model.Reaction
,java.io.Serializable
,java.lang.Comparable
public final class Event<T> extends AbstractReaction<T>
This reaction completely ignores the propensity conditioning of the conditions, and tries to run every time the TimeDistribution wants to.
-
-
Field Summary
Fields Modifier and Type Field Description public final TimeDistribution<T>
timeDistribution
public final Node<T>
node
-
Constructor Summary
Constructors Constructor Description Event(Node<T> node, TimeDistribution<T> timedist)
-
Method Summary
Modifier and Type Method Description double
getRate()
Event<T>
cloneOnNewNode(@Nonnull() Node<T> node, @Nonnull() Time currentTime)
-
Methods inherited from class it.unibo.alchemist.model.reactions.AbstractReaction
canExecute, compareTo, equals, execute, getActions, getConditions, getInboundDependencies, getInputContext, getNode, getOutboundDependencies, getOutputContext, getTau, getTimeDistribution, hashCode, initializationComplete, setActions, setConditions, toString, update
-
Methods inherited from class it.unibo.alchemist.model.Reaction
getInputContext, getNode, getOutputContext
-
Methods inherited from class it.unibo.alchemist.model.Actionable
canExecute, execute, getActions, getConditions, getInboundDependencies, getOutboundDependencies, getTau, getTimeDistribution, initializationComplete, setActions, setConditions, update
-
Methods inherited from class java.lang.Comparable
compareTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Event
Event(Node<T> node, TimeDistribution<T> timedist)
- Parameters:
node
- the node this Event belongs totimedist
- the TimeDistribution this event should use
-
-
-
-