diva.graph.modular
Class BasicModularGraphModel.BasicNodeModel

java.lang.Object
  extended by diva.graph.modular.BasicModularGraphModel.BasicNodeModel
All Implemented Interfaces:
CompositeModel, MutableCompositeNodeModel, MutableNodeModel, NodeModel
Enclosing class:
BasicModularGraphModel

public class BasicModularGraphModel.BasicNodeModel
extends Object
implements MutableCompositeNodeModel


Constructor Summary
BasicModularGraphModel.BasicNodeModel()
           
 
Method Summary
 int getNodeCount(Object composite)
          Return the number of nodes contained in this graph or composite node.
 Object getParent(Object node)
          Return the graph parent of the given node.
 Iterator inEdges(Object node)
          Return an iterator over the edges coming into the given node.
 Iterator nodes(Object composite)
          Provide an iterator over the nodes in the given graph or composite node.
 Iterator outEdges(Object node)
          Return an iterator over the edges coming out of the given node.
 void setParent(Object node, Object parent)
          Set the graph parent of the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicModularGraphModel.BasicNodeModel

public BasicModularGraphModel.BasicNodeModel()
Method Detail

inEdges

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

Specified by:
inEdges in interface NodeModel

outEdges

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

Specified by:
outEdges in interface NodeModel

getParent

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

Specified by:
getParent in interface NodeModel

setParent

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

Specified by:
setParent in interface MutableNodeModel

getNodeCount

public int getNodeCount(Object composite)
Return the number of nodes contained in this graph or composite node.

Specified by:
getNodeCount in interface CompositeModel

nodes

public Iterator nodes(Object composite)
Provide an iterator over the nodes in the given graph or composite node. This iterator does not necessarily support removal operations.

Specified by:
nodes in interface CompositeModel


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