-
- All Implemented Interfaces:
-
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.nodes.NodeWithShape,java.io.Serializable,kotlin.Comparable,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public final class HeterogeneousPedestrian2D<T extends Object> extends AbstractHeterogeneousPedestrian<T, Euclidean2DPosition, Euclidean2DTransformation, Euclidean2DShapeFactory> implements Pedestrian2D<T>
A pedestrian with heterogeneous characteristics. Requires a bidimensional environment with support for physics (Physics2DEnvironment).
-
-
Field Summary
Fields Modifier and Type Field Description private final Physics2DEnvironment<T>environmentprivate final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation>pedestrianModelprivate final PedestrianGroup<T, Euclidean2DPosition, Euclidean2DTransformation>membershipGroupprivate final List<InfluenceSphere>sensesprivate final InfluenceSpherefieldOfViewprivate final GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>shape
-
Constructor Summary
Constructors Constructor Description HeterogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, PedestrianGroup2D<T> group, String nodeCreationParameter)HeterogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, PedestrianGroup2D<T> group)HeterogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender)
-
Method Summary
Modifier and Type Method Description Physics2DEnvironment<T>getEnvironment()Access to the environment. final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation>getPedestrianModel()The pedestrian model, capturing its characteristics. 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.AbstractHeterogeneousPedestrian
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
-
HeterogeneousPedestrian2D
HeterogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, PedestrianGroup2D<T> group, String nodeCreationParameter)
-
HeterogeneousPedestrian2D
HeterogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender, PedestrianGroup2D<T> group)
-
HeterogeneousPedestrian2D
HeterogeneousPedestrian2D(Incarnation<T, Euclidean2DPosition> incarnation, RandomGenerator randomGenerator, Physics2DEnvironment<T> environment, Object age, String gender)
-
-
Method Detail
-
getEnvironment
Physics2DEnvironment<T> getEnvironment()
Access to the environment.
-
getPedestrianModel
final HeterogeneousPedestrianModel<T, Euclidean2DPosition, Euclidean2DTransformation> getPedestrianModel()
The pedestrian model, capturing its characteristics.
-
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()
-
-
-
-