diva.graph.modular
Interface Node

All Superinterfaces:
PropertyContainer, SemanticObjectContainer
All Known Subinterfaces:
CompositeNode

public interface Node
extends SemanticObjectContainer, PropertyContainer

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:
$Revision: 1.6 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)

Method Summary
 Graph getParent()
          Return the graph parent of this node.
 Iterator inEdges()
          Return an iterator over the edges coming into this node.
 Iterator outEdges()
          Return an iterator over the edges coming out of this node.
 void setParent(Graph parent)
          Set the graph parent of this node.
 
Methods inherited from interface diva.util.SemanticObjectContainer
getSemanticObject, setSemanticObject
 
Methods inherited from interface diva.util.PropertyContainer
getProperty, propertyNames, setProperty
 

Method Detail

inEdges

Iterator inEdges()
Return an iterator over the edges coming into this node.


outEdges

Iterator outEdges()
Return an iterator over the edges coming out of this node.


getParent

Graph getParent()
Return the graph parent of this node.


setParent

void setParent(Graph parent)
Set the graph parent of this node. Implementors of this method are also responsible for insuring that it is set properly as the child of the graph in the graph.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.