-
- 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.nodes.NodeWithShape,java.io.Serializable,kotlin.Comparable,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public abstract class AbstractHeterogeneousPedestrian<T extends Object, P extends Vector<P>, Position<P>, A extends GeometricTransformation<P>, F extends GeometricShapeFactory<P, A>> extends AbstractHomogeneousPedestrian<T, P, A, F> implements HeterogeneousPedestrian<T, P, A>
Implementation of a heterogeneous pedestrian.
-
-
Field Summary
Fields Modifier and Type Field Description private final HeterogeneousPedestrianModel<T, P, A>pedestrianModelprivate final PedestrianGroup<T, P, A>membershipGroupprivate final List<InfluenceSphere>sensesprivate final InfluenceSpherefieldOfViewprivate final GeometricShape<P, A>shape
-
Constructor Summary
Constructors Constructor Description AbstractHeterogeneousPedestrian(RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender, PedestrianGroup<T, P, A> group)AbstractHeterogeneousPedestrian(RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender)
-
Method Summary
Modifier and Type Method Description final HeterogeneousPedestrianModel<T, P, A>getPedestrianModel()The pedestrian model, capturing its characteristics. PedestrianGroup<T, P, A>getMembershipGroup()The group this pedestrian belongs to. List<InfluenceSphere>getSenses()abstract InfluenceSpheregetFieldOfView()The field of view of the pedestrian. abstract GeometricShape<P, A>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
-
AbstractHeterogeneousPedestrian
AbstractHeterogeneousPedestrian(RandomGenerator randomGenerator, Node<T> backingNode, Age age, Gender gender, PedestrianGroup<T, P, A> group)
- Parameters:
randomGenerator-the simulation {@link RandomGenerator}.age-the age of this pedestrian.gender-the gender of this pedestrian
-
-
Method Detail
-
getPedestrianModel
final HeterogeneousPedestrianModel<T, P, A> getPedestrianModel()
The pedestrian model, capturing its characteristics.
-
getMembershipGroup
PedestrianGroup<T, P, A> 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<P, A> getShape()
-
-
-
-