Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

diva.graph.modular
Class BasicModularGraphModel

java.lang.Object
 extended bydiva.graph.AbstractGraphModel
 extended bydiva.graph.modular.ModularGraphModel
 extended bydiva.graph.modular.MutableModularGraphModel
 extended bydiva.graph.modular.BasicModularGraphModel
All Implemented Interfaces:
GraphModel, MutableGraphModel
Direct Known Subclasses:
BasicGraphModel

public class BasicModularGraphModel
extends MutableModularGraphModel

A modular implementation of the graph model, whereby users with heterogeneous graphs can implement the graph model interface by implementing the simple interfaces of Graph, Node, CompositeNode, and Edge.

Version:
$Id: BasicModularGraphModel.java,v 1.16 2005年10月24日 19:09:04 cxh Exp $
Author:
Michael Shilman
Accepted Rating:
Red

Nested Class Summary
class BasicModularGraphModel.BasicEdgeModel
class BasicModularGraphModel.BasicNodeModel
Field Summary
Fields inherited from class diva.graph.AbstractGraphModel
_graphListeners
Constructor Summary
BasicModularGraphModel(Graph root)
Construct an empty graph model whose root is the given semantic object.
Method Summary
CompositeModel getCompositeModel(java.lang.Object composite)
Return the model for the given composite object.
EdgeModel getEdgeModel(java.lang.Object edge)
Return the model for the given edge object.
NodeModel getNodeModel(java.lang.Object node)
Return the node model for the given object.
java.lang.Object getProperty(java.lang.Object o, java.lang.String propertyName)
Return the property of the object associated with the given property name.
java.lang.Object getSemanticObject(java.lang.Object o)
Return the semantic object corresponding to the given node, edge, or composite.
void setProperty(java.lang.Object o, java.lang.String propertyName, java.lang.Object value)
Set the property of the object associated with the given property name.
void setSemanticObject(java.lang.Object o, java.lang.Object sem)
Set the semantic object corresponding to the given node, edge, or composite.
Methods inherited from class diva.graph.modular.MutableModularGraphModel
acceptHead, acceptTail, 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, nodesAfterEdges, nodesBeforeEdges, 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, nodesAfterEdges, nodesBeforeEdges, outEdges, removeGraphListener, setDispatchEnabled

Constructor Detail

BasicModularGraphModel

public BasicModularGraphModel(Graph root)
Construct an empty graph model whose root is the given semantic object.

Method Detail

getCompositeModel

public CompositeModel getCompositeModel(java.lang.Object composite)
Return the model for the given composite object. If the object is not a composite, meaning that it does not contain other nodes, then return null.

Specified by:
getCompositeModel in class ModularGraphModel

getEdgeModel

public EdgeModel getEdgeModel(java.lang.Object edge)
Return the model for the given edge object. If the object is not an edge, then return null.

Specified by:
getEdgeModel in class ModularGraphModel

getNodeModel

public NodeModel getNodeModel(java.lang.Object node)
Return the node model for the given object. If the object is not a node, then return null.

Specified by:
getNodeModel in class ModularGraphModel

getProperty

public java.lang.Object getProperty(java.lang.Object o,
 java.lang.String propertyName)
Return the property of the object associated with the given property name.

Specified by:
getProperty in interface GraphModel
Specified by:
getProperty in class ModularGraphModel

getSemanticObject

public java.lang.Object getSemanticObject(java.lang.Object o)
Return the semantic object corresponding to the given node, edge, or composite.

Specified by:
getSemanticObject in interface GraphModel
Specified by:
getSemanticObject in class ModularGraphModel

setProperty

public void setProperty(java.lang.Object o,
 java.lang.String propertyName,
 java.lang.Object value)
Set the property of the object associated with the given property name.

Specified by:
setProperty in interface GraphModel
Specified by:
setProperty in class ModularGraphModel

setSemanticObject

public void setSemanticObject(java.lang.Object o,
 java.lang.Object sem)
Set the semantic object corresponding to the given node, edge, or composite.

Specified by:
setSemanticObject in interface GraphModel
Specified by:
setSemanticObject in class ModularGraphModel

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /