agentgui.core.ontologies

Class OntologyVisualisationHelper

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
    • Constructor Summary

      Constructors 
      Constructor and Description
      OntologyVisualisationHelper(java.util.Vector<java.lang.String> subOntologies)
      Constructor of the Class.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addSubOntology(java.lang.String newSubOntology)
      Adds a new sub-ontology to the current project.
      java.util.Vector<java.lang.Class<?>> getAllNoneUsedOntologies()
      This Method filters all available ontologies by the already used project-ontologies and returns the remaining classes as Vector.
      javax.swing.tree.DefaultMutableTreeNode getClassTreeNode(java.lang.String classReference2Search)
      This Method returns the 'TreeNode' for class to search, which is a part of the project ontology.
      OntologyClassTreeObject getClassTreeObject(java.lang.String classReference2Search)
      This Method returns the 'OntologyClassTreeObject' for class to search, which is a part of the project-ontology.
      java.lang.String getErrorStack()
      Gets the error stack.
      javax.swing.tree.DefaultTreeModel getOntologyTree()
      This method returns the whole TreeModel for the project ontology, which can consist of one or more Sub-Ontologies.
      javax.swing.table.DefaultTableModel getSlots4Class(java.lang.String classReference2Search)
      This Method returns a DefaultTableModel for a given class inside of the project-ontology.
      OntologySingleClassDescription getSlots4ClassAsObject(java.lang.String classReference2Search)
      This Method returns a ArrayList of Slot-Descriptions for a given class inside of the project-ontology.
      java.util.Vector<java.lang.String> getSubOntologies()
      Returns the references of the sub ontologies.
      boolean hasError()
      Checks for error.
      void removeSubOntology(java.lang.String subOntology2Remove)
      Removes a sub-ontology from the current project.
      void setSubOntologies(java.util.Vector<java.lang.String> subOntologies)
      Sets the references of the sub ontologies.
      • Methods inherited from class java.util.HashMap

        clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Constructor Detail

      • OntologyVisualisationHelper

        public OntologyVisualisationHelper(java.util.Vector<java.lang.String> subOntologies)
        Constructor of the Class.
        Parameters:
        subOntologies - the Vector of references to sub ontologies
    • Method Detail

      • getSubOntologies

        public java.util.Vector<java.lang.String> getSubOntologies()
        Returns the references of the sub ontologies.
        Returns:
        the subOntologies
      • setSubOntologies

        public void setSubOntologies(java.util.Vector<java.lang.String> subOntologies)
        Sets the references of the sub ontologies.
        Parameters:
        subOntologies - the subOntologies to set
      • getOntologyTree

        public javax.swing.tree.DefaultTreeModel getOntologyTree()
        This method returns the whole TreeModel for the project ontology, which can consist of one or more Sub-Ontologies.
        Returns:
        DefaultTreeModel
      • hasError

        public boolean hasError()
        Checks for error.
        Returns:
        true, if an error has occurred
      • getErrorStack

        public java.lang.String getErrorStack()
        Gets the error stack.
        Returns:
        the errorStack
      • addSubOntology

        public void addSubOntology(java.lang.String newSubOntology)
        Adds a new sub-ontology to the current project.
        Parameters:
        newSubOntology - the new sub ontology
      • removeSubOntology

        public void removeSubOntology(java.lang.String subOntology2Remove)
        Removes a sub-ontology from the current project.
        Parameters:
        subOntology2Remove - the removable sub ontology
      • getAllNoneUsedOntologies

        public java.util.Vector<java.lang.Class<?>> getAllNoneUsedOntologies()
        This Method filters all available ontologies by the already used project-ontologies and returns the remaining classes as Vector.
        Returns:
        the all none used ontologies
      • getClassTreeNode

        public javax.swing.tree.DefaultMutableTreeNode getClassTreeNode(java.lang.String classReference2Search)
        This Method returns the 'TreeNode' for class to search, which is a part of the project ontology.
        Parameters:
        classReference2Search - the class reference2 search
        Returns:
        the class tree node
      • getClassTreeObject

        public OntologyClassTreeObject getClassTreeObject(java.lang.String classReference2Search)
        This Method returns the 'OntologyClassTreeObject' for class to search, which is a part of the project-ontology.
        Parameters:
        classReference2Search - the class reference2 search
        Returns:
        the class tree object
      • getSlots4Class

        public javax.swing.table.DefaultTableModel getSlots4Class(java.lang.String classReference2Search)
        This Method returns a DefaultTableModel for a given class inside of the project-ontology.
        Parameters:
        classReference2Search - the class reference2 search
        Returns:
        DefaultTableModel
      • getSlots4ClassAsObject

        public OntologySingleClassDescription getSlots4ClassAsObject(java.lang.String classReference2Search)
        This Method returns a ArrayList of Slot-Descriptions for a given class inside of the project-ontology.
        Parameters:
        classReference2Search - the class reference2 search
        Returns:
        DefaultTableModel