edu.iastate.metnet.graphmodel
Class CompositionGraphModel
java.lang.Object
org._3pq.jgrapht.graph.AbstractGraph
org._3pq.jgrapht.graph.GraphDelegator
org._3pq.jgrapht.graph.DefaultListenableGraph
org._3pq.jgrapht.graph.ListenableDirectedGraph
edu.iastate.metnet.graphmodel.CompositionGraphModel
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, org._3pq.jgrapht.DirectedGraph, org._3pq.jgrapht.Graph, org._3pq.jgrapht.ListenableGraph
public class CompositionGraphModel
- extends org._3pq.jgrapht.graph.ListenableDirectedGraph
contain the nodes of the current graph.
- Author:
- Jie Li
- See Also:
- Serialized Form
|
Field Summary |
(package private) org.apache.log4j.Logger |
logger
log4j facility |
| Methods inherited from class org._3pq.jgrapht.graph.DefaultListenableGraph |
addEdge, addEdge, addGraphListener, addVertex, addVertexSetListener, clone, fireEdgeAdded, fireEdgeRemoved, fireVertexAdded, fireVertexRemoved, isReuseEvents, removeEdge, removeEdge, removeGraphListener, removeVertex, removeVertexSetListener, setReuseEvents |
| Methods inherited from class org._3pq.jgrapht.graph.GraphDelegator |
containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf, toString, vertexSet |
| Methods inherited from class org._3pq.jgrapht.graph.AbstractGraph |
addAllEdges, addAllVertices, assertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toStringFromSets |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org._3pq.jgrapht.DirectedGraph |
incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf |
| Methods inherited from interface org._3pq.jgrapht.Graph |
addAllEdges, addAllVertices, addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet |
logger
org.apache.log4j.Logger logger
- log4j facility
CompositionGraphModel
public CompositionGraphModel()
addCompositionGraphModelChangedListener
public void addCompositionGraphModelChangedListener(CompositionGraphModelChangedListener compositionGraphModelChangedListener)
removeCompositionGraphModelChangedListener
public void removeCompositionGraphModelChangedListener(CompositionGraphModelChangedListener compositionGraphModelChangedListener)
fireCompositionGraphModelChangedEvent
public void fireCompositionGraphModelChangedEvent()
- update the graph visualization if there are some changes in the graph model
checkOrInsertMetnetBlockunit
public IMetnetBlockUnit checkOrInsertMetnetBlockunit(java.lang.Integer blockid)
removeMetnetBlockunit
public void removeMetnetBlockunit(java.lang.Integer blockid)
isAndRelation
public boolean isAndRelation(java.lang.Integer complexid,
java.lang.Integer componentid)
addAndRelation
public void addAndRelation(IMetnetBlockUnit complex,
IMetnetBlockUnit component,
java.lang.Integer coeffiecient)
findRelation
public RelationObject findRelation(java.lang.Integer complexid,
java.lang.Integer componentid)
addAndRelation
public void addAndRelation(IMetnetBlockUnit complex,
IMetnetBlockUnit component)
addOrRelation
public void addOrRelation(IMetnetBlockUnit complex,
IMetnetBlockUnit component,
java.lang.Integer coeffiecient)
addOrRelation
public void addOrRelation(IMetnetBlockUnit complex,
IMetnetBlockUnit component)
removeRelation
public void removeRelation(java.lang.Integer complexid,
java.lang.Integer componentid)
updateGraphEdges
public void updateGraphEdges()
- update the edge in the graph model and must call after any add/delete operation