HeterogeneousPedestrianModel

data class HeterogeneousPedestrianModel<T, S : Vector<S>, A : Transformation<S>>(val age: Age, val gender: Gender, val speed: Speed, val compliance: Double = Compliance(age, gender).level, val helpAttitude: HelpAttitude = HelpAttitude(age, gender))

Model of a pedestrian with heterogeneous 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.

Constructors

Link copied to clipboard
constructor(age: Age, gender: Gender, speed: Speed, compliance: Double = Compliance(age, gender).level, helpAttitude: HelpAttitude = HelpAttitude(age, gender))

Properties

Link copied to clipboard
val age: Age

The age of this pedestrian.

Link copied to clipboard

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

Link copied to clipboard

The gender of this pedestrian.

Link copied to clipboard

The attitude toward helping other agents.

Link copied to clipboard

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

Functions

Link copied to clipboard

Returns the probability that this pedestrian will help another pedestrian.