HumanProperty

Capability representing a pedestrian's individual characteristics.

Type Parameters

T

the concentration type.

S

the concrete Vector type used for geometry operations.

A

the concrete Transformation type compatible with S.

Inheritors

Properties

Link copied to clipboard
abstract val age: Age

The age of this pedestrian.

Link copied to clipboard
abstract val compliance: Double

Value between 0 and 1 representing the attitude toward conforming to social rules.

Link copied to clipboard
abstract val gender: Gender

The gender of this pedestrian.

Link copied to clipboard

The attitude toward helping other agents.

Link copied to clipboard
abstract val node: Node<T>

The node to which the capability is added.

Link copied to clipboard
abstract val speed: Speed

The agent's speed considering age, gender and randomness.

Functions

Link copied to clipboard
abstract fun cloneOnNewNode(node: Node<T>): NodeProperty<T>

Clones this property to be added on a new node.

Link copied to clipboard
open fun probabilityOfHelping(toHelp: HeterogeneousPedestrianModel<T, S, A>, isGroupMember: Boolean): Double

Returns the probability that this pedestrian will help another pedestrian.

Link copied to clipboard
infix fun NodeProperty<*>.shouldEqual(other: NodeProperty<*>)