public class OntologySolverGraphModel extends AbstractBasicGraphModel
| Red (cshelton) |
| Red (cshelton) |
| Modifier and Type | Class and Description |
|---|---|
class |
OntologySolverGraphModel.OntologyModel
The model for an icon that represents ontologies in the ontology solver
model.
|
_graphListeners| Constructor and Description |
|---|
OntologySolverGraphModel(CompositeEntity composite)
Construct a new graph model whose root is the given composite entity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnectEdge(java.lang.Object eventSource,
java.lang.Object edge)
Disconnect an edge object.
|
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 edge controller appropriate for the given edge.
|
NodeModel |
getNodeModel(java.lang.Object node)
Return the node model for the given object.
|
OntologySolverGraphModel.OntologyModel |
getOntologyModel()
Get the ontology model which maps all ontology nodes in the graph to the
Ontology elements in then ontology solver model. |
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.
|
_getLocation, _update, changeExecuted, changeFailed, getCompositeModel, getProperty, getPtolemyModel, getSemanticObject, isNode, removeListeners, setProperty, setSemanticObjectcontainsNode, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, nodes, nodesAfterEdges, nodesBeforeEdges, outEdgesaddGraphListener, dispatchGraphEvent, removeGraphListener, setDispatchEnabledpublic OntologySolverGraphModel(CompositeEntity composite)
OntologySolverModel
composite entity.composite - The top-level composite entity for the model.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.edge - The edge to be disconnected.public OntologySolverGraphModel.OntologyModel getOntologyModel()
Ontology elements in then ontology solver model.public java.lang.String getDeleteEdgeMoML(java.lang.Object edge)
getDeleteEdgeMoML in class AbstractBasicGraphModeledge - The edge.public java.lang.String getDeleteNodeMoML(java.lang.Object node)
getDeleteNodeMoML in class AbstractBasicGraphModelnode - The node.public EdgeModel getEdgeModel(java.lang.Object edge)
getEdgeModel in class ModularGraphModeledge - The given edge in the ontology solver model editor. No
edges exist in the ontology solver model.public NodeModel getNodeModel(java.lang.Object node)
Ontology entities or Ptolemy attributes that contain
concept functions or actor constraint definitions.getNodeModel in class AbstractBasicGraphModelnode - An object which is assumed to be in this graph model.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.node - The node to be removed.