CognitivePedestrian2D

open class CognitivePedestrian2D<T>(randomGenerator: RandomGenerator, environment: Physics2DEnvironment<T>, backingNode: Node<T>, age: Age, gender: Gender, danger: Molecule?, group: PedestrianGroup2D<T>?) : AbstractCognitivePedestrian<T, Euclidean2DPosition, Euclidean2DTransformation, Euclidean2DShapeFactory> , Pedestrian2D<T>

Implementation of a cognitive pedestrian in the Euclidean world.

Parameters

environment
    the environment inside which this pedestrian moves.
randomGenerator
    the simulation {@link RandomGenerator}.
age
    the age of this pedestrian.
gender
    the gender of this pedestrian
danger
    the molecule associated to danger in the environment.

Constructors

Link copied to clipboard
fun <T> CognitivePedestrian2D(incarnation: Incarnation<T, Euclidean2DPosition>, randomGenerator: RandomGenerator, environment: Physics2DEnvironment<T>, age: Any, gender: String, danger: Molecule? = null, group: PedestrianGroup2D<T>? = null, nodeCreationParameter: String? = null)
Link copied to clipboard
fun <T> CognitivePedestrian2D(randomGenerator: RandomGenerator, environment: Physics2DEnvironment<T>, backingNode: Node<T>, age: Age, gender: Gender, danger: Molecule? = null, group: PedestrianGroup2D<T>? = null)

Functions

Link copied to clipboard
abstract fun addReaction(p0: Reaction<T>)
Link copied to clipboard
abstract fun cloneNode(p0: Time): Node<T>
Link copied to clipboard
abstract operator fun compareTo(other: Node<T>): Int
Link copied to clipboard
abstract operator fun contains(p0: Molecule): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in Reaction<T>>)
Link copied to clipboard
abstract fun getConcentration(p0: Molecule): T
Link copied to clipboard
abstract fun getContents(): MutableMap<Molecule, T>
Link copied to clipboard
abstract fun getId(): Int
Link copied to clipboard
abstract fun getMoleculeCount(): Int
Link copied to clipboard
abstract fun getReactions(): MutableList<Reaction<T>>
Link copied to clipboard
open fun influencialPeople(): List<CognitiveModel>

The mind model of all people considered influencial for this cognitive pedestrian.

Link copied to clipboard
abstract operator override fun iterator(): MutableIterator<Reaction<T>>
Link copied to clipboard
abstract fun removeConcentration(p0: Molecule)
Link copied to clipboard
abstract fun removeReaction(p0: Reaction<T>)
Link copied to clipboard
abstract fun setConcentration(p0: Molecule, p1: T)
Link copied to clipboard
abstract fun speed(): Double

The speed at which the pedestrian is moving.

Link copied to clipboard
open fun spliterator(): Spliterator<Reaction<T>>

Properties

Link copied to clipboard
open override val cognitiveModel: CognitiveModel

The mind model of this pedestrian.

Link copied to clipboard
val danger: Molecule?
Link copied to clipboard
override val environment: Physics2DEnvironment<T>
Link copied to clipboard
open override val fieldOfView: FieldOfView2D<T>

The field of view of a pedestrian in the Euclidean world. Implementors should override this property to prevent the continuous creation of new FieldOfView2Ds.

Link copied to clipboard

The group this pedestrian belongs to.

Link copied to clipboard

The pedestrian model, capturing its characteristics.

Link copied to clipboard
open val senses: List<InfluenceSphere>

The list of influence spheres belonging to this pedestrian (by default, only its fieldOfView).

Link copied to clipboard
open override val shape: Euclidean2DShape

The shape of any pedestrian in the Euclidean world. Implementors should override this property to prevent the continuous creation of new Euclidean2DShapes.

Inheritors

Link copied to clipboard