Class OntologySolverGraphController

  • All Implemented Interfaces:
    GraphController, DebugListener, ValueListener

    public class OntologySolverGraphController
    extends WithIconGraphController
    A Graph Controller for ontology solver models.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)
    • Field Detail

      • _ontologyController

        protected OntologyEntityController _ontologyController
        The controller for ontologies in the ontology solver model.
    • Constructor Detail

      • OntologySolverGraphController

        public OntologySolverGraphController()
        Create a new ontology graph controller object.
    • Method Detail

      • getEdgeController

        public EdgeController getEdgeController​(java.lang.Object object)
        Return the edge controller appropriate for the given edge. In the ontology solver editor, there are no edges, so this method returns null.
        Specified by:
        getEdgeController in interface GraphController
        Specified by:
        getEdgeController in class AbstractGraphController
        Parameters:
        object - The given edge in the ontology solver model editor. No edges exist in the ontology solver model.
        Returns:
        null.
      • getNodeController

        public NodeController getNodeController​(java.lang.Object object)
        Return the node controller appropriate for the given node object. In the ontology solver editor, all nodes are ontology model objects or attributes for concept functions or adapter definitions, so the controller is always a OntologyController object or an AttributeInOntologyController.
        Specified by:
        getNodeController in interface GraphController
        Overrides:
        getNodeController in class BasicGraphController
        Parameters:
        object - The given node in the ontology model editor.
        Returns:
        Either a ConceptController object or an AttributeController object.
      • _addHotKeys

        protected void _addHotKeys​(JGraph jgraph)
        Add hot keys to the actions in the given JGraph. For the ontology solver graph controller, add the hot keys for the ontology controller and attribute controller.
        Overrides:
        _addHotKeys in class BasicGraphController
        Parameters:
        jgraph - The JGraph to which hot keys are to be added.
      • _createControllers

        protected void _createControllers()
        Initialize all the controller objects for elements in the ontology solver editor. This consists of a controller for attributes and ontologies. The parent class WithIconGraphController also references a port controller, so we must initialize it here even though the ontology model editor has no visible ports.
        Overrides:
        _createControllers in class WithIconGraphController
      • initializeInteraction

        protected void initializeInteraction()
        Initialize interaction on the graph pane. This method is called by the setGraphPane() method of the superclass AbstractGraphController. This initialization cannot be done in the constructor because the controller does not yet have a reference to its pane at that time.
        Overrides:
        initializeInteraction in class WithIconGraphController