CognitiveBehavior

class CognitiveBehavior<T, V : Vector<V>, A : Transformation<V>>(node: Node<T>, timeDistribution: TimeDistribution<T>) : AbstractReaction<T>

Reaction representing the cognitive behavior of a pedestrian.

Parameters

node
the owner of this reaction.
timeDistribution
the time distribution according to this the reaction executes.

Constructors

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

Properties

Link copied to clipboard
open override var actions: List<Action<T>>
Link copied to clipboard
open override var conditions: List<Condition<T>>
Link copied to clipboard
override val inboundDependencies: ListSet
Link copied to clipboard
override val inputContext: Context
Link copied to clipboard
override val node: Node<T>
Link copied to clipboard
override val outboundDependencies: ListSet
Link copied to clipboard
override val outputContext: Context
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
override val tau: Time
Link copied to clipboard

Functions

Link copied to clipboard
open override fun canExecute(): Boolean
Link copied to clipboard
open override fun cloneOnNewNode(node: Node<T>, currentTime: Time): CognitiveBehavior<T, out Vector<*>, Nothing>

This method allows to clone this reaction on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.

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

Executes the reactions.

Link copied to clipboard
override fun hashCode(): Int
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 toString(): String
Link copied to clipboard
override fun update(currentTime: Time, hasBeenExecuted: Boolean, environment: Environment<T, *>)

Updates the scheduling of this reaction.