-
- 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.PhysicalNode,it.unibo.alchemist.model.interfaces.PhysicalPedestrian,it.unibo.alchemist.model.interfaces.PhysicalPedestrian2D,it.unibo.alchemist.model.interfaces.nodes.NodeWithShape,java.io.Serializable,kotlin.Comparable,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public class CognitivePhysicalPedestrian2D<T extends Object> extends CognitivePedestrian2D<T> implements PhysicalPedestrian2D<T>
A cognitive pedestrian capable of physical interactions, modeled as a PhysicalPedestrian2D. comfortRay changes dynamically depending on whether the pedestrian wants to evacuate or not.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCognitivePhysicalPedestrian2D.Companion
-
Field Summary
Fields Modifier and Type Field Description private final DoublecomfortRayprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>comfortAreaprivate final CognitiveModelcognitiveModelprivate final Moleculedangerprivate final Physics2DEnvironment<T>environmentprivate final FieldOfView2D<T>fieldOfViewprivate final PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>membershipGroupprivate final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation>pedestrianModelprivate final List<InfluenceSphere>sensesprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>shape
-
Constructor Summary
Constructors Constructor Description CognitivePhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, String age, String gender, Molecule danger, PedestrianGroup2D<T> group)CognitivePhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, String age, String gender, Molecule danger)CognitivePhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, String age, String gender)CognitivePhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String age, String gender)
-
Method Summary
Modifier and Type Method Description DoublegetComfortRay()GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>getComfortArea()CognitiveModelgetCognitiveModel()final MoleculegetDanger()final Physics2DEnvironment<T>getEnvironment()FieldOfView2D<T>getFieldOfView()abstract PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>getMembershipGroup()final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation>getPedestrianModel()List<InfluenceSphere>getSenses()GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>getShape()-
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 it.unibo.alchemist.model.interfaces.Pedestrian2D
speed -
Methods inherited from class it.unibo.alchemist.model.implementations.nodes.CognitivePhysicalPedestrian2D
repulsionForce -
Methods inherited from class it.unibo.alchemist.model.interfaces.PhysicalPedestrian2D
physicalForces -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CognitivePhysicalPedestrian2D
CognitivePhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, String age, String gender, Molecule danger, PedestrianGroup2D<T> group)
-
CognitivePhysicalPedestrian2D
CognitivePhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, String age, String gender, Molecule danger)
-
CognitivePhysicalPedestrian2D
CognitivePhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, String age, String gender)
-
CognitivePhysicalPedestrian2D
CognitivePhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String age, String gender)
-
-
Method Detail
-
getComfortRay
Double getComfortRay()
-
getComfortArea
GeometricShape<Euclidean2DPosition, Euclidean2DTransformation> getComfortArea()
-
getCognitiveModel
CognitiveModel getCognitiveModel()
-
getEnvironment
final Physics2DEnvironment<T> getEnvironment()
-
getFieldOfView
FieldOfView2D<T> getFieldOfView()
-
getMembershipGroup
abstract PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation> getMembershipGroup()
-
getPedestrianModel
final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation> getPedestrianModel()
-
getSenses
List<InfluenceSphere> getSenses()
-
-
-
-