Class GenericGroup
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.cognitive.Group
,kotlin.collections.Collection
,kotlin.collections.Iterable
,kotlin.collections.List
,kotlin.collections.MutableCollection
,kotlin.collections.MutableIterable
,kotlin.collections.MutableList
public class GenericGroup<T extends Object, N extends Node<T>> implements Group<T>, List<Node<T>>
Basic implementation of a group.
-
-
Constructor Summary
Constructors Constructor Description GenericGroup(List<N> members)
-
Method Summary
Modifier and Type Method Description final Boolean
addMember(N node)
adds node to the group if not already added. final Boolean
removeMember(N node)
removes, if present, node from the group. -
Methods inherited from class it.unibo.alchemist.model.cognitive.Group
getMembers
-
Methods inherited from class kotlin.collections.List
contains, containsAll, get, getSize, indexOf, isEmpty, iterator, lastIndexOf, spliterator
-
Methods inherited from class kotlin.collections.MutableList
add, add, addAll, addAll, clear, listIterator, listIterator, remove, removeAll, removeAt, replaceAll, retainAll, set, sort, subList
-
Methods inherited from class kotlin.collections.Iterable
forEach
-
Methods inherited from class kotlin.collections.Collection
parallelStream, stream, toArray
-
Methods inherited from class kotlin.collections.MutableCollection
removeIf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-