public interface IPortOwner extends IModelItem
IGraph that may own ports.
Typically this interface is actively implemented by INode's in an IGraph. To get to the edge instances
that connect to the ports, the IGraph.edgesAt(IPortOwner, AdjacencyTypes) method can be used. Alternatively for
each IPort in Ports, one can use the IGraph.edgesAt(IPort, AdjacencyTypes) method
provided by IGraph. Like all items in an IGraph, this item supports the ILookup.lookup(java.lang.Class)
method that can be used to query additional aspects of the item.
| Modifier and Type | Method and Description |
|---|---|
IListEnumerable<IPort> |
getPorts()
Provides access to a collection of
ports that are owned by this instance. |
createDictionaryLookup, createDynamic, createSingle, createSingle, createWrapped, lookup, lookup, lookup, safeLookupIListEnumerable<IPort> getPorts()
ports that are owned by this instance.
This gives access to a read-only live view of the ports, i.e. the collection can change over time, as well as the ports contained in it. If a snapshot of the current state is needed, one needs to copy the collection.