Class HelpAttitude
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.cognitive.impact.individual.Characteristic
public final class HelpAttitude implements Characteristic
The attitude of an agent towards helping another agent.
-
-
Constructor Summary
Constructors Constructor Description HelpAttitude(Age age, Gender gender)
-
Method Summary
-
-
Method Detail
-
level
final Double level(Age toHelpAge, Gender toHelpGender, Boolean sameGroup)
The logic used to calculate the probability of helping.
- Parameters:
toHelpAge
-the age of the agent who needs help.
toHelpGender
-the gender of the agent who needs help.
sameGroup
-whether or not the two agents belong to the same group.
-
-
-
-