public class OntologySolverGraphModel extends AbstractBasicGraphModel
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, setSemanticObject
containsNode, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, nodes, nodesAfterEdges, nodesBeforeEdges, outEdges
addGraphListener, dispatchGraphEvent, removeGraphListener, setDispatchEnabled
public 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 AbstractBasicGraphModel
eventSource
- 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 AbstractBasicGraphModel
edge
- The edge.public java.lang.String getDeleteNodeMoML(java.lang.Object node)
getDeleteNodeMoML
in class AbstractBasicGraphModel
node
- The node.public EdgeModel getEdgeModel(java.lang.Object edge)
getEdgeModel
in class ModularGraphModel
edge
- 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 AbstractBasicGraphModel
node
- 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 AbstractBasicGraphModel
eventSource
- The source of the event that will be dispatched,
e.g. the view that made this call.node
- The node to be removed.