-
- 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.nodes.NodeWithShape,java.io.Serializable,kotlin.Comparable,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public class HomogeneousPedestrian2D<T extends Object> extends AbstractHomogeneousPedestrian<T, Euclidean2DPosition, Euclidean2DTransformation, Euclidean2DShapeFactory> implements Pedestrian2D<T>
Implementation of a homogeneous pedestrian in the Euclidean world.
-
-
Field Summary
Fields Modifier and Type Field Description private final Physics2DEnvironment<T>environmentprivate final PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>membershipGroupprivate final List<InfluenceSphere>sensesprivate final InfluenceSpherefieldOfViewprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>shape
-
Constructor Summary
Constructors Constructor Description HomogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, PedestrianGroup2D<T> group)HomogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter)HomogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment)HomogeneousPedestrian2D(RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Node<T> backingNode, PedestrianGroup2D<T> group)HomogeneousPedestrian2D(RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Node<T> backingNode)
-
Method Summary
Modifier and Type Method Description final Physics2DEnvironment<T>getEnvironment()PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>getMembershipGroup()The group this pedestrian belongs to. List<InfluenceSphere>getSenses()abstract InfluenceSpheregetFieldOfView()The field of view of the pedestrian. abstract GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>getShape()-
Methods inherited from class it.unibo.alchemist.model.implementations.nodes.HomogeneousPedestrian2D
speed -
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HomogeneousPedestrian2D
HomogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter, PedestrianGroup2D<T> group)
-
HomogeneousPedestrian2D
HomogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, String nodeCreationParameter)
-
HomogeneousPedestrian2D
HomogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment)
-
HomogeneousPedestrian2D
HomogeneousPedestrian2D(RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Node<T> backingNode, PedestrianGroup2D<T> group)
- Parameters:
randomGenerator-the simulation {@link RandomGenerator}.environment-the environment inside which this pedestrian moves.
-
HomogeneousPedestrian2D
HomogeneousPedestrian2D(RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Node<T> backingNode)
- Parameters:
randomGenerator-the simulation {@link RandomGenerator}.environment-the environment inside which this pedestrian moves.
-
-
Method Detail
-
getEnvironment
final Physics2DEnvironment<T> getEnvironment()
-
getMembershipGroup
PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation> 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<Euclidean2DPosition, Euclidean2DTransformation> getShape()
-
-
-
-