Event

class Event<T> : AbstractReaction<T>

This reaction completely ignores the propensity conditioning of the conditions, and tries to run every time the TimeDistribution wants to.

Parameters

<T>

concentration type

Constructors

Link copied to clipboard
open fun Event(node: Node<T>, timedist: TimeDistribution<T>)

Functions

Link copied to clipboard
open fun canExecute(): Boolean
The default implementation verifies if all the conditions are valid.
abstract fun canExecute(): Boolean
Link copied to clipboard
open fun cloneOnNewNode(node: Node<T>, currentTime: Time): Event<T>
Link copied to clipboard
fun compareTo(o: Reaction<T>): Int
abstract fun compareTo(p: T): Int
Link copied to clipboard
fun equals(o: Any): Boolean
Link copied to clipboard
open fun execute()
The default execution iterates all the actions in order and executes them.
abstract fun execute()
Link copied to clipboard
open fun getActions(): List<Action<T>>
Override only if you need to implement extremely tricky behaviours.
abstract fun getActions(): List<Action<T>>
Link copied to clipboard
open fun getConditions(): List<Condition<T>>
Override only if you need to implement extremely tricky behaviours.
abstract fun getConditions(): List<Condition<T>>
Link copied to clipboard
fun getInboundDependencies(): ListSet<Dependency>
abstract fun getInboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
fun getInputContext(): Context
abstract fun getInputContext(): Context
Link copied to clipboard
fun getNode(): Node<T>
abstract fun getNode(): Node<T>
Link copied to clipboard
fun getOutboundDependencies(): ListSet<Dependency>
abstract fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
fun getOutputContext(): Context
abstract fun getOutputContext(): Context
Link copied to clipboard
open fun getRate(): Double
Link copied to clipboard
fun getTau(): Time
abstract fun getTau(): Time
Link copied to clipboard
fun getTimeDistribution(): TimeDistribution<T>
abstract fun getTimeDistribution(): TimeDistribution<T>
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
open fun initializationComplete(atTime: Time, environment: Environment<T, out Any>)
abstract fun initializationComplete(p: Time, p1: Environment<T, out Any>)
Link copied to clipboard
open fun setActions(actions: List<Action<T>>)
This should get overridden only if very tricky behaviours are implemented, such that the default Alchemist action addition model is no longer usable.
abstract fun setActions(p: List<Action<T>>)
Link copied to clipboard
open fun setConditions(conditions: List<Condition<T>>)
This should get overridden only if very tricky behaviours are implemented, such that the default Alchemist condition addition model is no longer usable.
abstract fun setConditions(p: List<Condition<T>>)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
fun update(currentTime: Time, hasBeenExecuted: Boolean, environment: Environment<T, out Any>)
abstract fun update(p: Time, p1: Boolean, p2: Environment<T, out Any>)