-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.CognitivePedestrian,it.unibo.alchemist.model.interfaces.HeterogeneousPedestrian,it.unibo.alchemist.model.interfaces.Node,it.unibo.alchemist.model.interfaces.Pedestrian,it.unibo.alchemist.model.interfaces.Pedestrian2D,it.unibo.alchemist.model.interfaces.nodes.NodeWithShape,java.io.Serializable,kotlin.Comparable,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public class CognitivePedestrian2D<T extends Object> extends AbstractCognitivePedestrian<T, Euclidean2DPosition, Euclidean2DTransformation, Euclidean2DShapeFactory> implements Pedestrian2D<T>
Implementation of a cognitive pedestrian in the Euclidean world.
-
-
Field Summary
Fields Modifier and Type Field Description private final Physics2DEnvironment<T>environmentprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>shapeprivate final FieldOfView2D<T>fieldOfViewprivate final List<InfluenceSphere>sensesprivate final PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>membershipGroupprivate final CognitiveModelcognitiveModelprivate final Moleculedangerprivate final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation>pedestrianModel
-
Constructor Summary
Constructors Constructor Description CognitivePedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, Molecule danger, PedestrianGroup2D<T> group, String nodeCreationParameter)CognitivePedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, Molecule danger, PedestrianGroup2D<T> group)CognitivePedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, Molecule danger)CognitivePedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender)CognitivePedestrian2D(RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Node<T> backingNode, Age age, Gender gender, Molecule danger, PedestrianGroup2D<T> group)
-
Method Summary
Modifier and Type Method Description final Physics2DEnvironment<T>getEnvironment()GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>getShape()FieldOfView2D<T>getFieldOfView()List<InfluenceSphere>getSenses()abstract PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>getMembershipGroup()The group this pedestrian belongs to. CognitiveModelgetCognitiveModel()The mind model of this pedestrian. final MoleculegetDanger()final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation>getPedestrianModel()The pedestrian model, capturing its characteristics. -
Methods inherited from class it.unibo.alchemist.model.interfaces.Pedestrian2D
speed -
Methods inherited from class it.unibo.alchemist.model.interfaces.nodes.NodeWithShape
addReaction, cloneNode, contains, getConcentration, getContents, getId, getMoleculeCount, getReactions, removeConcentration, removeReaction, setConcentration -
Methods inherited from class it.unibo.alchemist.model.interfaces.Node
compareTo, iterator -
Methods inherited from class kotlin.collections.MutableIterable
forEach, spliterator -
Methods inherited from class it.unibo.alchemist.model.implementations.nodes.AbstractCognitivePedestrian
influencialPeople -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CognitivePedestrian2D
CognitivePedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, Molecule danger, PedestrianGroup2D<T> group, String nodeCreationParameter)
-
CognitivePedestrian2D
CognitivePedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, Molecule danger, PedestrianGroup2D<T> group)
-
CognitivePedestrian2D
CognitivePedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, Molecule danger)
-
CognitivePedestrian2D
CognitivePedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender)
-
CognitivePedestrian2D
CognitivePedestrian2D(RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Node<T> backingNode, Age age, Gender gender, Molecule danger, PedestrianGroup2D<T> group)
- Parameters:
randomGenerator-the simulation {@link RandomGenerator}.environment-the environment inside which this pedestrian moves.age-the age of this pedestrian.gender-the gender of this pedestriandanger-the molecule associated to danger in the environment.
-
-
Method Detail
-
getEnvironment
final Physics2DEnvironment<T> getEnvironment()
-
getFieldOfView
FieldOfView2D<T> getFieldOfView()
-
getSenses
List<InfluenceSphere> getSenses()
-
getMembershipGroup
abstract PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation> getMembershipGroup()
The group this pedestrian belongs to.
-
getCognitiveModel
CognitiveModel getCognitiveModel()
The mind model of this pedestrian.
-
getPedestrianModel
final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation> getPedestrianModel()
The pedestrian model, capturing its characteristics.
-
-
-
-