-
- All Implemented Interfaces:
-
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 HomogeneousPhysicalPedestrian2D<T extends Object> extends HomogeneousPedestrian2D<T> implements PhysicalPedestrian2D<T>
A homogeneous pedestrian capable of physical interactions, modeled as a PhysicalPedestrian2D. comfortRay is statically defined to be equal to its shape radius.
-
-
Field Summary
Fields Modifier and Type Field Description private final DoublecomfortRayprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>comfortAreaprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>shapeprivate final InfluenceSpherefieldOfViewprivate final PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>membershipGroupprivate final List<InfluenceSphere>sensesprivate final Physics2DEnvironment<T>environment
-
Constructor Summary
Constructors Constructor Description HomogeneousPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, PedestrianGroup2D<T> group)HomogeneousPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter)HomogeneousPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment)
-
Method Summary
Modifier and Type Method Description DoublegetComfortRay()The comfort ray of this pedestrian, this is added to the radius of its shape to obtain the comfortArea. GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>getComfortArea()abstract GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>getShape()abstract InfluenceSpheregetFieldOfView()abstract PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>getMembershipGroup()List<InfluenceSphere>getSenses()abstract Physics2DEnvironment<T>getEnvironment()-
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 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.interfaces.PhysicalPedestrian
speed -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HomogeneousPhysicalPedestrian2D
HomogeneousPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, PedestrianGroup2D<T> group)
-
HomogeneousPhysicalPedestrian2D
HomogeneousPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter)
-
HomogeneousPhysicalPedestrian2D
HomogeneousPhysicalPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment)
-
-
Method Detail
-
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()
-
getShape
abstract GeometricShape<Euclidean2DPosition, Euclidean2DTransformation> getShape()
-
getFieldOfView
abstract InfluenceSphere getFieldOfView()
-
getMembershipGroup
abstract PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation> getMembershipGroup()
-
getSenses
List<InfluenceSphere> getSenses()
-
getEnvironment
abstract Physics2DEnvironment<T> getEnvironment()
-
-
-
-