org.universAAL.lddi.fs20.connect
Class FS20Listener

Package class diagram package FS20Listener
java.lang.Object
  extended by org.universAAL.lddi.fs20.connect.FS20Listener

public class FS20Listener
extends Object

This class registers a new FS20 event listener. If a new event is detected it searches the matching registered service and changes the value of the service which is recognized by the fs20.exporter bundle via ServiceEvent.MODIFIED and will converted to an UAAL context event

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

Constructor Summary
FS20Listener(org.osgi.framework.BundleContext context)
           
 
Method Summary
static String binFS20ByteToString(int value, int bits)
          Converts the houseCode, deviceCode and functionCode to a String object
 void Init(FHZ1000PC fhz, LogTracker log)
          Initializes a new FS20EventListener
 void setDevices(HashMap<String,org.osgi.framework.ServiceRegistration> reg)
          Called by the Activator and sets all ServiceRegistrations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FS20Listener

public FS20Listener(org.osgi.framework.BundleContext context)
Method Detail

setDevices

public void setDevices(HashMap<String,org.osgi.framework.ServiceRegistration> reg)
Called by the Activator and sets all ServiceRegistrations

Parameters:
reg - = all registered FS20 devices as ServiceRegistrations

Init

public void Init(FHZ1000PC fhz,
                 LogTracker log)
Initializes a new FS20EventListener

Parameters:
fhz - = the FS20 gateway connection
log - = the logger

binFS20ByteToString

public static String binFS20ByteToString(int value,
                                         int bits)
Converts the houseCode, deviceCode and functionCode to a String object

Parameters:
value - = the integer value of a received code
bits - = number of bits
Returns:
returns the received code as a String


Copyright © 2014 universAAL Consortium. All Rights Reserved.