CognitiveBehavior
class CognitiveBehavior<T, V : Vector<V>, A : Transformation<V>>(node: Node<T>, timeDistribution: TimeDistribution<T>) : AbstractReaction<T>
Reaction representing a pedestrian's cognitive behavior.
Parameters
node
the owner of this reaction.
timeDistribution
the time distribution governing reaction execution.
Type Parameters
T
the concentration type.
V
the vector type used by the node's position/geometry.
A
the transformation type compatible with V.
Properties
Functions
Link copied to clipboard
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
Link copied to clipboard
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
Link copied to clipboard
Converts a Reaction to a ReactionSurrogate.