Interface HumanProperty
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.NodeProperty
,java.io.Serializable
public interface HumanProperty<T extends Object, S extends Vector<S>, A extends Transformation<S>> implements NodeProperty<T>
A capability representing a pedestrian's individual characteristics.
-
-
Method Summary
Modifier and Type Method Description 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. abstract Age
getAge()
The age of this pedestrian. abstract Gender
getGender()
The gender of this pedestrian. abstract Speed
getSpeed()
The speed of an agent considering its age, gender and a random factor. abstract Double
getCompliance()
Value between 0 and 1 representing the attitude towards conforming to social rules of this pedestrian. abstract HelpAttitude
getHelpAttitude()
The attitude of an agent towards helping another agent. -
-
Method Detail
-
probabilityOfHelping
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.
-
getSpeed
abstract Speed getSpeed()
The speed of an agent considering its age, gender and a random factor.
-
getCompliance
abstract Double getCompliance()
Value between 0 and 1 representing the attitude towards conforming to social rules of this pedestrian.
-
getHelpAttitude
abstract HelpAttitude getHelpAttitude()
The attitude of an agent towards helping another agent.
-
-
-
-