Pedestrian

open class Pedestrian<T> @JvmOverloads constructor(randomGenerator: RandomGenerator, val node: Node<T>, val walkingSpeed: Double = Speed.default, val runningSpeed: Double = Speed.default * 3) : AbstractNodeProperty<T> , PedestrianProperty<T> , WalkingPedestrianProperty<T> , RunningPedestrianProperty<T>

Implementation of a basic PedestrianProperty.

Inheritors

Constructors

Link copied to clipboard
constructor(randomGenerator: RandomGenerator, node: Node<T>, walkingSpeed: Double = Speed.default, runningSpeed: Double = Speed.default * 3)

Properties

Link copied to clipboard
open override val node: Node<T>
Link copied to clipboard
open override val runningSpeed: Double

The node's running speed.

Link copied to clipboard
open override val walkingSpeed: Double

The node's walking speed.

Functions

Link copied to clipboard
open override fun cloneOnNewNode(node: Node<T>): Pedestrian<T>
Link copied to clipboard
open override fun speed(): Double

The speed at which the pedestrian is moving.

Link copied to clipboard
open override fun toString(): String