|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.lddi.fs20.connect.FS20Listener
public class FS20Listener
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
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 |
---|
public FS20Listener(org.osgi.framework.BundleContext context)
Method Detail |
---|
public void setDevices(HashMap<String,org.osgi.framework.ServiceRegistration> reg)
reg
- = all registered FS20 devices as ServiceRegistrationspublic void Init(FHZ1000PC fhz, LogTracker log)
fhz
- = the FS20 gateway connectionlog
- = the loggerpublic static String binFS20ByteToString(int value, int bits)
value
- = the integer value of a received codebits
- = number of bits
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |