Class Human
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.NodeProperty
,it.unibo.alchemist.model.cognitive.HumanProperty
,java.io.Serializable
public final class Human<T extends Object> extends AbstractNodeProperty<T> implements HumanProperty<T, Euclidean2DPosition, Euclidean2DTransformation>
A pedestrian's individual characteristics.
-
-
Field Summary
Fields Modifier and Type Field Description private final Node<T>
node
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 Human(RandomGenerator randomGenerator, Node<T> node, Object age, String gender, Speed speed, Double compliance, HelpAttitude helpAttitude)
Human(RandomGenerator randomGenerator, Node<T> node, Object age, String gender, Speed speed, Double compliance)
Human(RandomGenerator randomGenerator, Node<T> node, Object age, String gender, Speed speed)
Human(RandomGenerator randomGenerator, Node<T> node, Object age, String gender)
Human(RandomGenerator randomGenerator, Node<T> node, Age age, Gender gender, Speed speed, Double compliance, HelpAttitude helpAttitude)
Human(RandomGenerator randomGenerator, Node<T> node, Age age, Gender gender, Speed speed, Double compliance)
Human(RandomGenerator randomGenerator, Node<T> node, Age age, Gender gender, Speed speed)
Human(RandomGenerator randomGenerator, Node<T> node, Age age, Gender gender)
-
Method Summary
Modifier and Type Method Description Node<T>
getNode()
Age
getAge()
The age of this pedestrian. Gender
getGender()
The gender of this pedestrian. Speed
getSpeed()
The speed of an agent considering its age, gender and a random factor. Double
getCompliance()
Value between 0 and 1 representing the attitude towards conforming to social rules of this pedestrian. HelpAttitude
getHelpAttitude()
The attitude of an agent towards helping another agent. Human<T>
cloneOnNewNode(Node<T> node)
String
toString()
-
-
Constructor Detail
-
Human
Human(RandomGenerator randomGenerator, Node<T> node, Object age, String gender, Speed speed, Double compliance, HelpAttitude helpAttitude)
-
Human
Human(RandomGenerator randomGenerator, Node<T> node, Object age, String gender, Speed speed, Double compliance)
-
Human
Human(RandomGenerator randomGenerator, Node<T> node, Age age, Gender gender, Speed speed, Double compliance, HelpAttitude helpAttitude)
-
Human
Human(RandomGenerator randomGenerator, Node<T> node, Age age, Gender gender, Speed speed, Double compliance)
-
-
Method Detail
-
getCompliance
Double getCompliance()
Value between 0 and 1 representing the attitude towards conforming to social rules of this pedestrian.
-
getHelpAttitude
HelpAttitude getHelpAttitude()
The attitude of an agent towards helping another agent.
-
cloneOnNewNode
Human<T> cloneOnNewNode(Node<T> node)
-
-
-
-