diva.graph.modular
Interface NodeModel

All Known Subinterfaces:
CompositeNodeModel, MutableCompositeNodeModel, MutableNodeModel
All Known Implementing Classes:
ActorGraphModel.ExternalPortModel, ActorGraphModel.IconModel, ActorGraphModel.PortModel, ActorGraphModel.VertexModel, AttributeNodeModel, BasicModularGraphModel.BasicNodeModel, FSMGraphModel.PortModel, FSMGraphModel.PortModel, FSMGraphModel.StateModel, FSMGraphModel.StateModel, NamedObjNodeModel

public interface NodeModel

A node is an object that is contained by a graph and is connected to other nodes by edges. A node has a semantic object that is its semantic equivalent in the application and may have a visual object which is its syntactic representation in the user interface.

Version:
$Id: NodeModel.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Michael Shilman
Accepted Rating:
Red

Method Summary
 java.lang.Object getParent(java.lang.Object node)
          Return the graph parent of the given node.
 java.util.Iterator inEdges(java.lang.Object node)
          Return an iterator over the edges coming into the given node.
 java.util.Iterator outEdges(java.lang.Object node)
          Return an iterator over the edges coming out of the given node.
 

Method Detail

inEdges

java.util.Iterator inEdges(java.lang.Object node)
Return an iterator over the edges coming into the given node.


outEdges

java.util.Iterator outEdges(java.lang.Object node)
Return an iterator over the edges coming out of the given node.


getParent

java.lang.Object getParent(java.lang.Object node)
Return the graph parent of the given node.