diva.graph.schematic
Class SchematicGraphModel
java.lang.Object
diva.graph.AbstractGraphModel
diva.graph.modular.ModularGraphModel
diva.graph.modular.MutableModularGraphModel
diva.graph.modular.BasicModularGraphModel
diva.graph.basic.BasicGraphModel
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
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.modular.ModularGraphModel |
containsNode, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, outEdges |
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 |
SchematicGraphModel
public SchematicGraphModel()
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.