G - The type of the graph.E - The type of the edge itself.N - The type of the nodes.public interface INode<G extends IGraph<G,E,N>,E extends IEdge<G,E,N>,N extends INode<G,E,N>> extends IExtensible
INode is an abstract interface to a common node. It is possible to
retrieve a view of the pre- and postsets as edge sets as well as node sets.
The generic parameter define what types are used for the graph and edges as well as the node itself. This allows to extend any node in a typesafe manner at compiletime. Additionally one may add any data to the node using the IExtensible interface methods at runtime.
For examples have a look at the pn.Place, pn.Transition, ts.Transition or Node classes.
| Modifier and Type | Method and Description |
|---|---|
G |
getGraph()
Retrieves the graph this node is part of.
|
java.lang.String |
getId()
Returns the id of the node.
|
java.util.Set<E> |
getPostsetEdges()
Retrieves a view of all edges beginning in this node.
|
java.util.Set<N> |
getPostsetNodes()
Retrieves a view of all nodes which have an incoming edge from this node.
|
java.util.Set<E> |
getPresetEdges()
Retrieves a view of all edges targeting this node.
|
java.util.Set<N> |
getPresetNodes()
Retrieves a view of all nodes which have an outgoing edge to this node.
|
getExtension, putExtension, removeExtensionjava.lang.String getId()
G getGraph()
java.util.Set<N> getPresetNodes()
java.util.Set<N> getPostsetNodes()
java.util.Set<E> getPresetEdges()
java.util.Set<E> getPostsetEdges()