de.dfleischhacker.uni.thesis.semantic
Class SemanticManager

java.lang.Object
  extended by de.dfleischhacker.uni.thesis.semantic.SemanticManager

public class SemanticManager
extends java.lang.Object

Provides methods to get semantic modules and contains a list of available modules as well as factory methods to create those semantic modules.


Method Summary
static java.util.ArrayList<java.lang.String> getAvailableModules()
          Returns a list containing the names of all registered semantic modules as strings
static SemanticModule getModuleInstance(java.lang.String name, Ontology onto1, Ontology onto2, boolean deleteABox)
          Returns an instance of the SemanticModule class which is determined by the given name.
static boolean isModuleAvailable(java.lang.String name)
          Checks if a module with the given name is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAvailableModules

public static java.util.ArrayList<java.lang.String> getAvailableModules()
Returns a list containing the names of all registered semantic modules as strings

Returns:
names of the available semantic modules

isModuleAvailable

public static boolean isModuleAvailable(java.lang.String name)
Checks if a module with the given name is available.

Parameters:
name - name of module whose availability to check
Returns:
true if a module with the given name is available, otherwise false

getModuleInstance

public static SemanticModule getModuleInstance(java.lang.String name,
                                               Ontology onto1,
                                               Ontology onto2,
                                               boolean deleteABox)
Returns an instance of the SemanticModule class which is determined by the given name.

Parameters:
name - name of the semantic module to instantiate
onto1 - first ontology
onto2 - second ontology
deleteABox - if true ABox of merged ontology is deleted
Returns:
instance of the semantic module class or null if the given name does not identify such a class