com.brayan.SECS.BLL
Class ContextManager

java.lang.Object
  extended by com.brayan.SECS.BLL.ContextManager

public class ContextManager
extends java.lang.Object

Singleton Context Manger comprises of a Context Assembler and Context Provider.

Author:
Brayan

Field Summary
private static ContextManager ref
           
 
Constructor Summary
private ContextManager()
          constructor not allowed to be called externally
 
Method Summary
 java.lang.Object clone()
          this overrides the clone() method - because it's of no use to us
private  void createOntoEvent(Event event)
          This method prepares the event node to insert the Event into the ontology
 Event enrichEvent(Event event)
          Enrich the passed event with Attention, a Sensor Event is a specialization of Event and can also be used.
private  Person findPerson(java.lang.String firstname, java.lang.String familyName)
          This method searches for an existing Person in the ontology
static ContextManager getSingletonObject()
           
private  void listTEST1()
           
private  void listTEST2()
           
private  void listTEST3()
           
private  Event mapSensorEventWithContext(Event event)
          This method is supposed to find out and map an invoked event to a context.
 void receiveSensorEvent(SensorEvent senEvent)
          This method receives Sensor Events and enriches them with further data from sources like a personal or enterprise ontology.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

private static ContextManager ref
Constructor Detail

ContextManager

private ContextManager()
constructor not allowed to be called externally

Method Detail

getSingletonObject

public static ContextManager getSingletonObject()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
this overrides the clone() method - because it's of no use to us

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

receiveSensorEvent

public void receiveSensorEvent(SensorEvent senEvent)
This method receives Sensor Events and enriches them with further data from sources like a personal or enterprise ontology.

Parameters:
senEvent - is a Sensor Event that still can be enriched or modified if better information is available

enrichEvent

public Event enrichEvent(Event event)
Enrich the passed event with Attention, a Sensor Event is a specialization of Event and can also be used.

Parameters:
event -

mapSensorEventWithContext

private Event mapSensorEventWithContext(Event event)
This method is supposed to find out and map an invoked event to a context. It's is currently held trivial but it could be extended with heuristics and other optimization techniques to map a well appropriate context to an event.

Parameters:
senEvent - is a Sensor Event that still can be enriched or modified if better information is available

createOntoEvent

private void createOntoEvent(Event event)
This method prepares the event node to insert the Event into the ontology

Parameters:
senEvent -

findPerson

private Person findPerson(java.lang.String firstname,
                          java.lang.String familyName)
This method searches for an existing Person in the ontology

Parameters:
fullName -
Returns:

listTEST1

private void listTEST1()

listTEST2

private void listTEST2()

listTEST3

private void listTEST3()