Class OntologyEntityController

  • All Implemented Interfaces:
    NodeController

    public class OntologyEntityController
    extends AttributeInOntologyController
    The node controller for an ontology in an ontology solver model. This class duplicates code from ActorController to provide the Look Inside and Open Instance actions in the context menu.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)
    • Field Detail

      • _lookInsideAction

        protected LookInsideAction _lookInsideAction
        The action that handles opening an ontology model.
      • _openInstanceAction

        protected ptolemy.vergil.ontologies.OntologyEntityController.OpenInstanceAction _openInstanceAction
        The action that handles opening an instance of an ontology class.
    • Constructor Detail

      • OntologyEntityController

        public OntologyEntityController​(GraphController controller)
        Create an ontology controller associated with the specified graph controller with full access.
        Parameters:
        controller - The associated graph controller.
      • OntologyEntityController

        public OntologyEntityController​(GraphController controller,
                                        AttributeController.Access access)
        Create an ontology controller associated with the specified graph controller.
        Parameters:
        controller - The associated graph controller.
        access - The access level.
    • Method Detail

      • addHotKeys

        public void addHotKeys​(JGraph jgraph)
        Add hot keys to the actions in the given JGraph.
        Overrides:
        addHotKeys in class AttributeController
        Parameters:
        jgraph - The JGraph to which hot keys are to be added.
      • setConfiguration

        public void setConfiguration​(Configuration configuration)
        Set the configuration for OntologyEntityController. This includes setting the configuration for its _lookinsideAction menu object.
        Overrides:
        setConfiguration in class AttributeController
        Parameters:
        configuration - The given configuration object to be used to set the configuration.
      • _getComponentType

        protected java.lang.String _getComponentType()
        Get the class label of the component which is an Ontology.
        Overrides:
        _getComponentType in class AttributeController
        Returns:
        The string "Ontology".