Human
class Human<T> @JvmOverloads constructor(randomGenerator: RandomGenerator, val node: Node<T>, val age: Age, val gender: Gender, val speed: Speed = Speed(age, gender, randomGenerator), val compliance: Double = Compliance(age, gender).level, val helpAttitude: HelpAttitude = HelpAttitude(age, gender)) : AbstractNodeProperty<T> , HumanProperty<T, Euclidean2DPosition, Euclidean2DTransformation>
A pedestrian's individual characteristics.
Constructors
Link copied to clipboard
constructor(randomGenerator: RandomGenerator, node: Node<T>, age: Any, gender: String, speed: Speed = Speed(Age.fromAny(age), Gender.fromString(gender), randomGenerator), compliance: Double = Compliance(Age.fromAny(age), Gender.fromString(gender)).level, helpAttitude: HelpAttitude = HelpAttitude(Age.fromAny(age), Gender.fromString(gender)))
Properties
Functions
Link copied to clipboard
Link copied to clipboard
open fun probabilityOfHelping(toHelp: HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation>, isGroupMember: Boolean): Double
Value between 0 and 1 representing the probability this pedestrian will help another pedestrian in difficulty.