Package 

Interface Group

  • All Implemented Interfaces:

    
    public interface Group<T extends Object, N extends Node<T>>
    
                        

    A group of nodes.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean contains(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.