HelpAttitude

class HelpAttitude(age: Age, gender: Gender) : Characteristic(source)

The attitude of an agent towards helping another agent.

Parameters

age
the age of the helper.
gender
the gender of the helper.

Constructors

Link copied to clipboard
constructor(age: Age, gender: Gender)

Functions

Link copied to clipboard
fun level(toHelpAge: Age, toHelpGender: Gender, sameGroup: Boolean): Double

The logic used to calculate the probability of helping.