-
- All Implemented Interfaces:
public final class HeterogeneousPedestrianModel<T extends Object, S extends Vector<S>, A extends GeometricTransformation<S>>A pedestrian with individual characteristics.
-
-
Field Summary
Fields Modifier and Type Field Description private final Ageageprivate final Gendergenderprivate final Speedspeedprivate final Doublecomplianceprivate final HelpAttitudehelpAttitude
-
Constructor Summary
Constructors Constructor Description HeterogeneousPedestrianModel(Age age, Gender gender, Speed speed, Double compliance, HelpAttitude helpAttitude)
-
Method Summary
Modifier and Type Method Description final AgegetAge()The age of this pedestrian. final GendergetGender()The gender of this pedestrian. final SpeedgetSpeed()The speed of an agent considering its age, gender and a random factor. final DoublegetCompliance()Value between 0 and 1 representing the attitude towards conforming to social rules of this pedestrian. final HelpAttitudegetHelpAttitude()The attitude of an agent towards helping another agent. final DoubleprobabilityOfHelping(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.
-
-
-
-