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 Summary
Modifier and TypeMethodDescription@Nullable NetworkNodeContainergetContainer(Object key) Retrieves a container by key, defined inNetworkNodeContainer.createKey().<T> Set<T> getContainers(Class<T> clazz) Retrieves containers by container type.Methods inherited from interface NetworkComponent
onContainerAdded, onContainerRemoved, onNetworkMergedWith, onNetworkRemoved, onNetworkSplit
-
Method Details
-
getContainers
Set<NetworkNodeContainer> getContainers()- Returns:
- all the containers currently present in this graph
-
getContainers
-
getContainer
Retrieves a container by key, defined inNetworkNodeContainer.createKey().- Parameters:
key- the key- Returns:
- the container, or null if not found
-