GlobalTestReaction

class GlobalTestReaction<T>(val timeDistribution: TimeDistribution<T>, val environment: Environment<T, *>) : GlobalReaction<T>

Constructors

Link copied to clipboard
constructor(timeDistribution: TimeDistribution<T>, environment: Environment<T, *>)

Properties

Link copied to clipboard
open override var actions: List<Action<T>>

The list of Actions of the Reaction. Please be careful when you modify this list.

Link copied to clipboard
open override var conditions: List<Condition<T>>

The list of Conditions of the Reaction. Please be careful when you modify this list.

Link copied to clipboard
Link copied to clipboard
open override val inboundDependencies: <Error class: unknown class><out Dependency>
Link copied to clipboard
open override val outboundDependencies: <Error class: unknown class><out Dependency>
Link copied to clipboard
open val rate: Double

Returns the speed of this Reaction. It is an average number, and can potentially change during the simulation, depending on the implementation.

Link copied to clipboard
open val tau: Time
Link copied to clipboard
open override val timeDistribution: TimeDistribution<T>

Functions

Link copied to clipboard
open override fun canExecute(): Boolean
Link copied to clipboard
open operator override fun compareTo(other: Actionable<T>): Int
Link copied to clipboard
open override fun execute()

Executes the reactions.

Link copied to clipboard
open override fun initializationComplete(atTime: Time, environment: Environment<T, *>)

This method is called when the environment has completed its initialization. Can be used by this reaction to compute its next execution time - in case such computation requires an inspection of the environment.

Link copied to clipboard
open override fun update(currentTime: Time, hasBeenExecuted: Boolean, environment: Environment<T, *>)

Updates the scheduling of this reaction.