diva.graph.schematic
Class SchematicGraphModel

java.lang.Object
  extended by diva.graph.AbstractGraphModel
      extended by diva.graph.modular.ModularGraphModel
          extended by diva.graph.modular.MutableModularGraphModel
              extended by diva.graph.modular.BasicModularGraphModel
                  extended by diva.graph.basic.BasicGraphModel
                      extended by diva.graph.schematic.SchematicGraphModel
All Implemented Interfaces:
GraphModel, MutableGraphModel

public class SchematicGraphModel
extends BasicGraphModel

A Basic graph model that only allows connections to nodes that are not composite.

Version:
$Revision: 1.2 $
Author:
Steve Neuendorffer (neuendor@eecs.berkeley.edu

Nested Class Summary
 
Nested classes/interfaces inherited from class diva.graph.modular.BasicModularGraphModel
BasicModularGraphModel.BasicEdgeModel, BasicModularGraphModel.BasicNodeModel
 
Field Summary
 
Fields inherited from class diva.graph.AbstractGraphModel
_graphListeners
 
Constructor Summary
SchematicGraphModel()
           
 
Method Summary
 boolean acceptHead(Object edge, Object node)
          Return true if the head of the given edge can be attached to the given node.
 boolean acceptTail(Object edge, Object node)
          Return true if the tail of the given edge can be attached to the given node.
 
Methods inherited from class diva.graph.basic.BasicGraphModel
createComposite, createEdge, createNode
 
Methods inherited from class diva.graph.modular.BasicModularGraphModel
getCompositeModel, getEdgeModel, getNodeModel, getProperty, getSemanticObject, setProperty, setSemanticObject
 
Methods inherited from class diva.graph.modular.MutableModularGraphModel
addNode, connectEdge, disconnectEdge, getMutableEdgeModel, getMutableNodeModel, removeNode, setEdgeHead, setEdgeTail
 
Methods inherited from class diva.graph.modular.ModularGraphModel
containsNode, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, outEdges
 
Methods inherited from class diva.graph.AbstractGraphModel
addGraphListener, dispatchGraphEvent, removeGraphListener, setDispatchEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface diva.graph.GraphModel
addGraphListener, containsNode, dispatchGraphEvent, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, outEdges, removeGraphListener, setDispatchEnabled
 

Constructor Detail

SchematicGraphModel

public SchematicGraphModel()
Method Detail

acceptHead

public boolean acceptHead(Object edge,
                          Object node)
Return true if the head of the given edge can be attached to the given node.

Specified by:
acceptHead in interface MutableGraphModel
Overrides:
acceptHead in class MutableModularGraphModel

acceptTail

public boolean acceptTail(Object edge,
                          Object node)
Return true if the tail of the given edge can be attached to the given node.

Specified by:
acceptTail in interface MutableGraphModel
Overrides:
acceptTail in class MutableModularGraphModel


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