-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Group,it.unibo.alchemist.model.interfaces.GroupWithLeader
public final class Family<T extends Object, S extends Vector<S>, A extends GeometricTransformation<S>> extends GenericGroup<T, Pedestrian<T, S, A>> implements GroupWithLeader<T, Pedestrian<T, S, A>>
A Family is modeled as a group of pedestrians with a leader.
-
-
Constructor Summary
Constructors Constructor Description Family(Comparator<Pedestrian<T, S, A>> comparator)
-
Method Summary
Modifier and Type Method Description Pedestrian<T, S, A>getLeader()The leader of the group. List<Pedestrian<T, S, A>>getMembers()-
Methods inherited from class it.unibo.alchemist.model.implementations.groups.Family
addMember, removeMember -
Methods inherited from class it.unibo.alchemist.model.implementations.groups.GenericGroup
contains -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Family
Family(Comparator<Pedestrian<T, S, A>> comparator)
-
-
Method Detail
-
getLeader
Pedestrian<T, S, A> getLeader()
The leader of the group.
-
getMembers
List<Pedestrian<T, S, A>> getMembers()
-
-
-
-