HomogeneousPhysicalPedestrian2D

open class HomogeneousPhysicalPedestrian2D<T> @JvmOverloads constructor(incarnation: Incarnation<T, Euclidean2DPosition>, randomGenerator: RandomGenerator, environment: Physics2DEnvironment<T>, nodeCreationParameter: String?, group: PedestrianGroup2D<T>?) : HomogeneousPedestrian2D<T> , PhysicalPedestrian2D<T>

A homogeneous pedestrian capable of physical interactions, modeled as a PhysicalPedestrian2D. comfortRay is statically defined to be equal to its shape radius.

Constructors

Link copied to clipboard
fun <T> HomogeneousPhysicalPedestrian2D(incarnation: Incarnation<T, Euclidean2DPosition>, randomGenerator: RandomGenerator, environment: Physics2DEnvironment<T>, nodeCreationParameter: String? = 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
abstract operator override fun iterator(): MutableIterator<Reaction<T>>
Link copied to clipboard
Link copied to clipboard
abstract fun removeConcentration(p0: Molecule)
Link copied to clipboard
abstract fun removeReaction(p0: Reaction<T>)
Link copied to clipboard
open override fun repulsionForce(other: NodeWithShape<T, Euclidean2DPosition, *>): Euclidean2DPosition

Computes the repulsion force caused by a node that entered the comfortArea. This is derived from the work of Pelechano et al.

Link copied to clipboard
abstract fun setConcentration(p0: Molecule, p1: T)
Link copied to clipboard
abstract fun speed(): Double
Link copied to clipboard
open fun spliterator(): Spliterator<Reaction<T>>

Properties

Link copied to clipboard
open override val comfortArea: Euclidean2DShape

The comfort area of this pedestrian, it's a circle of radius shape.radius + comfortRay.

Link copied to clipboard
open override val comfortRay: Double

The comfort ray of this pedestrian, this is added to the radius of its shape to obtain the comfortArea.

Link copied to clipboard
abstract val environment: Physics2DEnvironment<T>
Link copied to clipboard
abstract val fieldOfView: InfluenceSphere
Link copied to clipboard
Link copied to clipboard
open val senses: List<InfluenceSphere>
Link copied to clipboard
abstract val shape: GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>

Inheritors

Link copied to clipboard