it.unibo.alchemist.model.interfaces.Group
public class GenericGroup<T extends Object, N extends Node<T>> implements Group<T, N>
Basic implementation of a group.
private final List<N>
members
GenericGroup()
List<N>
getMembers()
Group<T, N>
addMember(N node)
removeMember(N node)
contains
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
List<N> getMembers()
Group<T, N> addMember(N node)
Add a node in this group if not already part of it.
node
the node to add.
Group<T, N> removeMember(N node)
Remove a node from this group.
the node to remove.