public class Hub extends Object implements OntologyListener
Modifier and Type | Class and Description |
---|---|
static class |
Hub.Log
helper class to simplify the calls to LogUtils of MW.
|
Modifier and Type | Field and Description |
---|---|
static String |
COMMENTS
This is prepended to the above file.
|
static String |
PROPS_FILE
Name of the config properties file.
|
Constructor and Description |
---|
Hub()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static Hub.Log |
getLog(Class cl)
Gets a Log helper class.
|
static Properties |
getProperties()
Gets the properties of the CHe.
|
void |
ontologyAdded(String ontURI)
Notification when a new ontology is added.
|
void |
ontologyRemoved(String ontURI)
Notification when an existing ontology is removed.
|
static void |
setProperties(Properties prop)
Sets the properties of the CHe.
|
void |
setuAALParser(MessageContentSerializer service)
Set the turtle-uaal parser.
|
void |
start(ModuleContext context)
To be called when application starts.
|
void |
stop()
To be called when application stops.
|
public static final String PROPS_FILE
public static final String COMMENTS
public void start(ModuleContext context)
context
- uaal module contextpublic final void stop() throws Exception
Exception
public void setuAALParser(MessageContentSerializer service)
service
- The parserpublic static void setProperties(Properties prop)
prop
- The Properties object containing ALL of the properties of the
CHegetProperties()
public static Properties getProperties()
setProperties(Properties)
public static Hub.Log getLog(Class cl)
cl
- Class that asks for a loggerpublic void ontologyAdded(String ontURI)
OntologyListener
ontologyAdded
in interface OntologyListener
ontURI
- the URI of the new ontology.public void ontologyRemoved(String ontURI)
OntologyListener
ontologyRemoved
in interface OntologyListener
ontURI
- the URI of the ontology.Copyright © 2015 universAAL Consortium. All Rights Reserved.