org.universAAL.lddi.fs20.devicemodel
Class FS20Device

Package class diagram package FS20Device
java.lang.Object
  extended by org.universAAL.lddi.fs20.devicemodel.FS20Device
Direct Known Subclasses:
FS20FMSDevice, FS20PIRxDevice, FS20RGBSADevice, FS20SIGDevice, FS20STDevice

public class FS20Device
extends Object

One FS20 Device with all additional properties. This device is registered in OSGi framework

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

Field Summary
protected  org.osgi.service.log.LogService logger
           
 
Constructor Summary
FS20Device()
          empty constructor for factory
 
Method Summary
 String getDeviceCode()
          Get the DeviceCode
 String getDeviceDescription()
          Get the device description
 String getDeviceLocation()
          Get the device location
 String getDeviceName()
          Get the device name
 FS20DeviceTypes getDeviceType()
          Get the device type
 String getDeviceURI()
          Get the device URI
 String getFunctionDescription()
          Get the function description
 String getHouseCode()
          Get the HouseCode
protected  void setConnection(FHZ1000PC connection)
           
 void setParams(FS20DeviceProperties fs20DeviceProps)
          Fill empty device with parameters and set it alive
 void setParams(FS20DeviceProperties fs20DeviceProps, org.osgi.service.log.LogService logger)
          Fill empty device with parameters and set it alive
protected  void write(String houseCode, String deviceCode, Byte button)
          Sends a FS20 command to the FS20 bus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.osgi.service.log.LogService logger
Constructor Detail

FS20Device

public FS20Device()
empty constructor for factory

Method Detail

setConnection

protected void setConnection(FHZ1000PC connection)

setParams

public void setParams(FS20DeviceProperties fs20DeviceProps,
                      org.osgi.service.log.LogService logger)
Fill empty device with parameters and set it alive

Parameters:
fs20DeviceProps - = contains all relevant properties
network - = the conntected FS20 network
logger - = logging service

setParams

public void setParams(FS20DeviceProperties fs20DeviceProps)
Fill empty device with parameters and set it alive

Parameters:
fs20DeviceProps - = contains all relevant properties
network - = the conntected FS20 network
logger - = logging service

getDeviceLocation

public String getDeviceLocation()
Get the device location

Returns:
returns the device location

getDeviceURI

public String getDeviceURI()
Get the device URI

Returns:
returns the device URI

getDeviceName

public String getDeviceName()
Get the device name

Returns:
returns the device name

getHouseCode

public String getHouseCode()
Get the HouseCode

Returns:
returns the houseCode

getDeviceCode

public String getDeviceCode()
Get the DeviceCode

Returns:
returns the deviceCode

getDeviceDescription

public String getDeviceDescription()
Get the device description

Returns:
returns the device description

getFunctionDescription

public String getFunctionDescription()
Get the function description

Returns:
returns the function description

getDeviceType

public FS20DeviceTypes getDeviceType()
Get the device type

Returns:
returns the device type

write

protected void write(String houseCode,
                     String deviceCode,
                     Byte button)
              throws IOException
Sends a FS20 command to the FS20 bus

Parameters:
houseCode - = the houseCode of the device
deviceCode - = the deviceCode of the device
button - = the control function
Throws:
IOException - = exception if something went wrong with the communication


Copyright © 2014 universAAL Consortium. All Rights Reserved.