Class HeterogeneousPedestrianModel
-
- All Implemented Interfaces:
public final class HeterogeneousPedestrianModel<T extends Object, S extends Vector<S>, A extends Transformation<S>>
A pedestrian with individual characteristics.
-
-
Field Summary
Fields Modifier and Type Field Description private final Age
age
private final Gender
gender
private final Speed
speed
private final Double
compliance
private final HelpAttitude
helpAttitude
-
Constructor Summary
Constructors Constructor Description HeterogeneousPedestrianModel(Age age, Gender gender, Speed speed, Double compliance, HelpAttitude helpAttitude)
-
Method Summary
Modifier and Type Method Description final Age
getAge()
The age of this pedestrian. final Gender
getGender()
The gender of this pedestrian. final Speed
getSpeed()
The speed of an agent considering its age, gender and a random factor. final Double
getCompliance()
Value between 0 and 1 representing the attitude towards conforming to social rules of this pedestrian. final HelpAttitude
getHelpAttitude()
The attitude of an agent towards helping another agent. final Double
probabilityOfHelping(HeterogeneousPedestrianModel<T, S, A> toHelp, Boolean isGroupMember)
Value between 0 and 1 representing the probability this pedestrian will help another pedestrian in difficulty. -
-
Constructor Detail
-
HeterogeneousPedestrianModel
HeterogeneousPedestrianModel(Age age, Gender gender, Speed speed, Double compliance, HelpAttitude helpAttitude)
-
-
Method Detail
-
getSpeed
final Speed getSpeed()
The speed of an agent considering its age, gender and a random factor.
-
getCompliance
final Double getCompliance()
Value between 0 and 1 representing the attitude towards conforming to social rules of this pedestrian.
-
getHelpAttitude
final HelpAttitude getHelpAttitude()
The attitude of an agent towards helping another agent.
-
probabilityOfHelping
final Double probabilityOfHelping(HeterogeneousPedestrianModel<T, S, A> toHelp, Boolean isGroupMember)
Value between 0 and 1 representing the probability this pedestrian will help another pedestrian in difficulty.
- Parameters:
toHelp
- The pedestrian who needs help.
-
-
-
-