-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Node,it.unibo.alchemist.model.interfaces.OrientingAgent,it.unibo.alchemist.model.interfaces.OrientingPedestrian,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 final class HomogeneousOrientingPhysicalPedestrian2D<T extends Object, N extends ConvexPolygon, E extends Object> extends HomogeneousPhysicalPedestrian2D<T> implements OrientingPedestrian<T, Euclidean2DPosition, Euclidean2DTransformation, Ellipse, DefaultEdge>
A homogeneous OrientingPedestrian2D capable of physical interactions.
-
-
Field Summary
Fields Modifier and Type Field Description private final FieldOfView2D<T>fieldOfViewprivate final PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>membershipGroupprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>shapeprivate final DoublecomfortRayprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>comfortAreaprivate final List<InfluenceSphere>sensesprivate final Physics2DEnvironment<T>environmentprivate final NavigationGraph<Euclidean2DPosition, Euclidean2DTransformation, Ellipse, DefaultEdge>cognitiveMapprivate final DoubleknowledgeDegreeprivate final Map<ConvexGeometricShape<Euclidean2DPosition, Euclidean2DTransformation>, Integer>volatileMemory
-
Constructor Summary
Constructors Constructor Description HomogeneousOrientingPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, EuclideanPhysics2DEnvironmentWithGraph<?, T, N, E> environment, String nodeCreationParameter, Double knowledgeDegree, PedestrianGroup2D<T> group)HomogeneousOrientingPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, EuclideanPhysics2DEnvironmentWithGraph<?, T, N, E> environment, String nodeCreationParameter, Double knowledgeDegree)HomogeneousOrientingPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, EuclideanPhysics2DEnvironmentWithGraph<?, T, N, E> environment, Double knowledgeDegree)
-
Method Summary
-
Methods inherited from class it.unibo.alchemist.model.implementations.nodes.HomogeneousPhysicalPedestrian2D
repulsionForce -
Methods inherited from class it.unibo.alchemist.model.interfaces.PhysicalPedestrian2D
physicalForces -
Methods inherited from class kotlin.collections.MutableIterable
forEach, spliterator -
Methods inherited from class it.unibo.alchemist.model.interfaces.OrientingPedestrian
registerVisit -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HomogeneousOrientingPhysicalPedestrian2D
HomogeneousOrientingPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, EuclideanPhysics2DEnvironmentWithGraph<?, T, N, E> environment, String nodeCreationParameter, Double knowledgeDegree, PedestrianGroup2D<T> group)
-
HomogeneousOrientingPhysicalPedestrian2D
HomogeneousOrientingPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, EuclideanPhysics2DEnvironmentWithGraph<?, T, N, E> environment, String nodeCreationParameter, Double knowledgeDegree)
-
HomogeneousOrientingPhysicalPedestrian2D
HomogeneousOrientingPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, EuclideanPhysics2DEnvironmentWithGraph<?, T, N, E> environment, Double knowledgeDegree)
-
-
Method Detail
-
getFieldOfView
FieldOfView2D<T> getFieldOfView()
-
getMembershipGroup
PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation> getMembershipGroup()
-
getComfortRay
Double getComfortRay()
The comfort ray of this pedestrian, this is added to the radius of its shape to obtain the comfortArea.
-
getComfortArea
GeometricShape<Euclidean2DPosition, Euclidean2DTransformation> getComfortArea()
-
getSenses
List<InfluenceSphere> getSenses()
-
getEnvironment
abstract Physics2DEnvironment<T> getEnvironment()
-
getCognitiveMap
NavigationGraph<Euclidean2DPosition, Euclidean2DTransformation, Ellipse, DefaultEdge> getCognitiveMap()
-
getKnowledgeDegree
Double getKnowledgeDegree()
-
getVolatileMemory
Map<ConvexGeometricShape<Euclidean2DPosition, Euclidean2DTransformation>, Integer> getVolatileMemory()
-
addReaction
Unit addReaction(Reaction<T> reaction)
-
getConcentration
T getConcentration(Molecule molecule)
-
getContents
Map<Molecule, T> getContents()
-
getMoleculeCount
Integer getMoleculeCount()
-
getReactions
List<Reaction<T>> getReactions()
-
removeConcentration
Unit removeConcentration(Molecule mol)
-
removeReaction
Unit removeReaction(Reaction<T> r)
-
setConcentration
Unit setConcentration(Molecule mol, T c)
-
-
-
-