-
-
Method Summary
Modifier and Type Method Description Booleancontains(N node)Whether a node belongs to this group or not. abstract Group<T, N>addMember(N node)Add a node in this group if not already part of it. abstract Group<T, N>removeMember(N node)Remove a node from this group. abstract List<N>getMembers()The list of pedestrians belonging to this group. -
-
Method Detail
-
contains
Boolean contains(N node)
Whether a node belongs to this group or not.
- Parameters:
node- The node to whom the membership must be checked.
-
addMember
abstract Group<T, N> addMember(N node)
Add a node in this group if not already part of it.
- Parameters:
node-the node to add.
-
removeMember
abstract Group<T, N> removeMember(N node)
Remove a node from this group.
- Parameters:
node-the node to remove.
-
getMembers
abstract List<N> getMembers()
The list of pedestrians belonging to this group.
-
-
-
-