org.universAAL.context.reasoner.osgi
Class Activator

Package class diagram package Activator
java.lang.Object
  extended by org.universAAL.context.reasoner.osgi.Activator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

public class Activator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

Activator of the reasoner. Basically it is used to prepare the the ReasoningProvider. The reasoner is basically a manager for situations, queries and rules. A Situation is currently (need to be improved) represented by three URI's: Subject, Predicate and Object. Subject and Object can be a concrete instances or also types. The subject is mandatory but the other two are optional. A Query is either a SPARQL Construct-Query or created out of a given Context-Event and a search-string. A Rule combines a situation with a query. If a context-event is posted on the context-bus that matches the parameters given by the situation in a rule, then the according query is performed at the CHE and the resulting ContextEvent of the Construct-Query is posted at the Context-bus.

Author:
alfiva, amarinc

Field Summary
static ContextPublisher cpublisher
           
static ModuleContext mcontext
           
static org.osgi.framework.BundleContext osgiContext
           
static CHECaller scaller
           
static MessageContentSerializer serializer
           
 
Constructor Summary
Activator()
           
 
Method Summary
 void serviceChanged(org.osgi.framework.ServiceEvent event)
           
 void start(org.osgi.framework.BundleContext bcontext)
           
 void stop(org.osgi.framework.BundleContext arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

osgiContext

public static org.osgi.framework.BundleContext osgiContext

mcontext

public static ModuleContext mcontext

cpublisher

public static ContextPublisher cpublisher

scaller

public static CHECaller scaller

serializer

public static MessageContentSerializer serializer
Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bcontext)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext arg0)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent event)
Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener


Copyright © 2014 universAAL Consortium. All Rights Reserved.