org.universAAL.lddi.fs20.exporter
Class Activator

Package class diagram package Activator
java.lang.Object
  extended by org.universAAL.lddi.fs20.exporter.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

This bundle notices OSGi service events. If a new service is registered the received device will be stored. If a service is modified it will send a uAAL context event. Also it notices service requests from uAAL and handles them.

Author:
Steeven Zeiss Fraunhofer IGD (steeven.zeiss@igd.fraunhofer.de)

Field Summary
static org.osgi.framework.BundleContext context
           
static ModuleContext mc
           
 
Constructor Summary
Activator()
           
 
Method Summary
static Vector<FS20RGBSADevice> getDisplays()
           
static Vector<FS20FMSDevice> getFMSs()
           
static Vector<FS20SIGDevice> getGongs()
           
static Vector<FS20PIRxDevice> getMotionsensors()
           
static Vector<FS20STDevice> getSwitches()
           
 void serviceChanged(org.osgi.framework.ServiceEvent event)
          Listens on OSGi service events and handles them If a new service is registered the received device will be stored.
 void start(org.osgi.framework.BundleContext context)
           
 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

context

public static org.osgi.framework.BundleContext context

mc

public static ModuleContext mc
Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           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)
Listens on OSGi service events and handles them If a new service is registered the received device will be stored. If a service is modified it will send a uAAL context event.

Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener

getDisplays

public static Vector<FS20RGBSADevice> getDisplays()

getMotionsensors

public static Vector<FS20PIRxDevice> getMotionsensors()

getGongs

public static Vector<FS20SIGDevice> getGongs()

getFMSs

public static Vector<FS20FMSDevice> getFMSs()

getSwitches

public static Vector<FS20STDevice> getSwitches()


Copyright © 2014 universAAL Consortium. All Rights Reserved.