-
- 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.nodes.NodeWithShape,java.io.Serializable,kotlin.Comparable,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public abstract class AbstractCognitivePedestrian<T extends Object, P extends Position<P>, Vector<P>, A extends GeometricTransformation<P>, F extends GeometricShapeFactory<P, A>> extends AbstractHeterogeneousPedestrian<T, P, A, F> implements CognitivePedestrian<T, P, A>
Implementation of a cognitive pedestrian.
-
-
Field Summary
Fields Modifier and Type Field Description private final CognitiveModelcognitiveModelprivate final Moleculedangerprivate final HeterogeneousPedestrianModel<T, P, A>pedestrianModelprivate final PedestrianGroup<T, P, A>membershipGroupprivate final List<InfluenceSphere>sensesprivate final InfluenceSpherefieldOfViewprivate final GeometricShape<P, A>shape
-
Constructor Summary
Constructors Constructor Description AbstractCognitivePedestrian(PhysicsEnvironment<T, P, A, F> environment, RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender, Molecule danger, PedestrianGroup<T, P, A> group, CognitiveModel cognitive)AbstractCognitivePedestrian(PhysicsEnvironment<T, P, A, F> environment, RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender, Molecule danger, PedestrianGroup<T, P, A> group)AbstractCognitivePedestrian(PhysicsEnvironment<T, P, A, F> environment, RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender, Molecule danger)AbstractCognitivePedestrian(PhysicsEnvironment<T, P, A, F> environment, RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender)
-
Method Summary
Modifier and Type Method Description CognitiveModelgetCognitiveModel()The mind model of this pedestrian. final MoleculegetDanger()final HeterogeneousPedestrianModel<T, P, A>getPedestrianModel()The pedestrian model, capturing its characteristics. PedestrianGroup<T, P, A>getMembershipGroup()The group this pedestrian belongs to. List<InfluenceSphere>getSenses()abstract InfluenceSpheregetFieldOfView()The field of view of the pedestrian. abstract GeometricShape<P, A>getShape()Doublespeed()The speed at which the pedestrian is moving. -
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.AbstractHomogeneousPedestrian
addReaction, cloneNode, contains, getConcentration, getContents, getId, getMoleculeCount, getReactions, removeConcentration, removeReaction, setConcentration -
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
-
AbstractCognitivePedestrian
AbstractCognitivePedestrian(PhysicsEnvironment<T, P, A, F> environment, RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender, Molecule danger, PedestrianGroup<T, P, A> group, CognitiveModel cognitive)
- Parameters:
environment-the environment inside which this pedestrian moves.randomGenerator-the simulation {@link RandomGenerator}.age-the age of this pedestrian.gender-the gender of this pedestriandanger-the molecule associated to danger in the environment.
-
AbstractCognitivePedestrian
AbstractCognitivePedestrian(PhysicsEnvironment<T, P, A, F> environment, RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender, Molecule danger, PedestrianGroup<T, P, A> group)
- Parameters:
environment-the environment inside which this pedestrian moves.randomGenerator-the simulation {@link RandomGenerator}.age-the age of this pedestrian.gender-the gender of this pedestriandanger-the molecule associated to danger in the environment.
-
AbstractCognitivePedestrian
AbstractCognitivePedestrian(PhysicsEnvironment<T, P, A, F> environment, RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender, Molecule danger)
- Parameters:
environment-the environment inside which this pedestrian moves.randomGenerator-the simulation {@link RandomGenerator}.age-the age of this pedestrian.gender-the gender of this pedestriandanger-the molecule associated to danger in the environment.
-
AbstractCognitivePedestrian
AbstractCognitivePedestrian(PhysicsEnvironment<T, P, A, F> environment, RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender)
- Parameters:
environment-the environment inside which this pedestrian moves.randomGenerator-the simulation {@link RandomGenerator}.age-the age of this pedestrian.gender-the gender of this pedestrian
-
-
Method Detail
-
getCognitiveModel
CognitiveModel getCognitiveModel()
The mind model of this pedestrian.
-
getPedestrianModel
final HeterogeneousPedestrianModel<T, P, A> getPedestrianModel()
The pedestrian model, capturing its characteristics.
-
getMembershipGroup
PedestrianGroup<T, P, A> getMembershipGroup()
The group this pedestrian belongs to.
-
getSenses
List<InfluenceSphere> getSenses()
-
getFieldOfView
abstract InfluenceSphere getFieldOfView()
The field of view of the pedestrian.
-
getShape
abstract GeometricShape<P, A> getShape()
-
-
-
-