Interface GraphNetworkComponent

All Superinterfaces:
NetworkComponent

@API(status=STABLE, since="2.0.0-milestone.3.2") public interface GraphNetworkComponent extends NetworkComponent
Responsible for managing the connected network nodes in a network.
  • Method Details

    • getContainers

      Set<NetworkNodeContainer> getContainers()
      Returns:
      all the containers currently present in this graph
    • getContainers

      <T> Set<T> getContainers(Class<T> clazz)
      Retrieves containers by container type. It can be queried by exact class type or by interface type.
      Type Parameters:
      T - the container class type
      Parameters:
      clazz - the container class type
      Returns:
      the containers matching the type
    • getContainer

      @Nullable NetworkNodeContainer getContainer(Object key)
      Retrieves a container by key, defined in NetworkNodeContainer.createKey().
      Parameters:
      key - the key
      Returns:
      the container, or null if not found