Pedestrian

open class Pedestrian<T>(randomGenerator: <Error class: unknown class>, 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: <Error class: unknown class>, node: Node<T>, walkingSpeed: Double = Speed.default, runningSpeed: Double = Speed.default * 3)

Properties

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

The node to which the capability is added.

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>

Clones this property to be added on a new node.

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