|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.graph.AbstractGraphModel
diva.graph.modular.ModularGraphModel
ptolemy.vergil.basic.AbstractBasicGraphModel
ptolemy.vergil.fsm.FSMGraphModel
A graph model for graphically manipulating ptolemy FSM models.
| Red (johnr) |
| Yellow (neuendor) |
| Nested Class Summary | |
class |
FSMGraphModel.ArcModel
The model for arcs between states. |
class |
FSMGraphModel.PortModel
The model for external ports. |
class |
FSMGraphModel.StateModel
The model for an icon that represent states. |
| Nested classes inherited from class ptolemy.vergil.basic.AbstractBasicGraphModel |
AbstractBasicGraphModel.GraphChangeListener |
| Field Summary |
| Fields inherited from class diva.graph.AbstractGraphModel |
_graphListeners |
| Constructor Summary | |
FSMGraphModel(CompositeEntity composite)
Construct a new graph model whose root is the given composite entity. |
|
| Method Summary | |
protected boolean |
_update()
Update the graph model. |
void |
disconnectEdge(java.lang.Object eventSource,
java.lang.Object edge)
Disconnect an edge from its two enpoints and notify graph listeners with an EDGE_HEAD_CHANGED and an EDGE_TAIL_CHANGED event whose source is the given source. |
FSMGraphModel.ArcModel |
getArcModel()
|
java.lang.String |
getDeleteEdgeMoML(java.lang.Object edge)
Return a MoML String that will delete the given edge from the Ptolemy model. |
java.lang.String |
getDeleteNodeMoML(java.lang.Object node)
Return a MoML String that will delete the given node from the Ptolemy model. |
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. |
FSMGraphModel.PortModel |
getPortModel()
|
java.lang.Object |
getSemanticObject(java.lang.Object element)
Return the semantic object corresponding to the given node, edge, or composite. |
FSMGraphModel.StateModel |
getStateModel()
|
void |
removeNode(java.lang.Object eventSource,
java.lang.Object node)
Delete a node from its parent graph and notify graph listeners with a NODE_REMOVED event. |
| Methods inherited from class ptolemy.vergil.basic.AbstractBasicGraphModel |
_getLocation, getCompositeModel, getProperty, getPtolemyModel, isNode, removeListeners, setProperty, setSemanticObject |
| Methods inherited from class diva.graph.modular.ModularGraphModel |
containsNode, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, 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 |
| Constructor Detail |
public FSMGraphModel(CompositeEntity composite)
composite - The top-level composite entity for the model.| Method Detail |
public void disconnectEdge(java.lang.Object eventSource,
java.lang.Object edge)
disconnectEdge in class AbstractBasicGraphModeleventSource - The source of the event that will be dispatched,
e.g. the view that made this call.
GraphException - If the operation fails.public java.lang.String getDeleteEdgeMoML(java.lang.Object edge)
getDeleteEdgeMoML in class AbstractBasicGraphModelpublic java.lang.String getDeleteNodeMoML(java.lang.Object node)
getDeleteNodeMoML in class AbstractBasicGraphModelpublic EdgeModel getEdgeModel(java.lang.Object edge)
getEdgeModel in class ModularGraphModeledge - An object which is assumed to be in this graph model.
public NodeModel getNodeModel(java.lang.Object node)
getNodeModel in class AbstractBasicGraphModelnode - An object which is assumed to be in this graph model.
public java.lang.Object getSemanticObject(java.lang.Object element)
getSemanticObject in interface GraphModelgetSemanticObject in class AbstractBasicGraphModelelement - A graph element.
public void removeNode(java.lang.Object eventSource,
java.lang.Object node)
removeNode in class AbstractBasicGraphModeleventSource - The source of the event that will be dispatched,
e.g. the view that made this call.
GraphException - If the operation fails.public FSMGraphModel.PortModel getPortModel()
public FSMGraphModel.StateModel getStateModel()
public FSMGraphModel.ArcModel getArcModel()
protected boolean _update()
_update in class AbstractBasicGraphModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||