ConditionalEvent
class ConditionalEvent<T>(node: Node<T>, timeDistribution: TimeDistribution<T>) : GenericReaction<T> (source)
A single-use event scheduled by condition validity and a timeDistribution.
No sample is drawn while the conditions are invalid. Becoming valid draws one delay from timeDistribution. If the conditions become invalid before execution, that putative occurrence is discarded and the event publishes Time.INFINITY. The next invalid-to-valid transition draws a new delay. Repeated updates while validity remains true do not redraw the occurrence. After successful action execution, the event unregisters itself from node.
Parameters
node
node hosting the event
timeDistribution
generator for delays from each enabling transition
Type Parameters
T
concentration type