WantToEscape

open class WantToEscape<T, S : Vector<S>, A : Transformation<S>>(node: Node<T>) : AbstractCondition<T>

The intention of the pedestrian to evacuate or not.

Constructors

Link copied to clipboard
constructor(node: Node<T>)

Properties

Link copied to clipboard
open override val context: Context
Link copied to clipboard
override val inboundDependencies: org/danilopianini/util/ListSet<out it/unibo/alchemist/model/Dependency!>??
Link copied to clipboard
open override val isValid: Boolean
Link copied to clipboard
open override val node: Node<T?>?
Link copied to clipboard
open override val propensityContribution: Double

Functions

Link copied to clipboard
open fun cloneCondition(newNode: Node<T?>?, newReaction: Reaction<T?>?): Condition<T?>?
Link copied to clipboard
open override fun getContext(): Context
Link copied to clipboard
open fun getNode(): Node<T?>?
Link copied to clipboard
open override fun getPropensityContribution(): Double

This method is a support for the propensity calculation inside the Reactions. It allows this condition to influence the rate calculation in some way. It's up to the reaction to decide whether to use or not this information, and how.

Link copied to clipboard
open override fun isValid(): Boolean
Link copied to clipboard
open fun reactionReady()

This method is called by the Simulation once the Reaction whose this Condition belongs to is the next one to be executed, and all its conditions passed (namely, the next operation will be the reaction execution). It can be used to perform sanity checks, as well as for registering the status of the simulated world for future comparisons. Defaults to an empty implementation.