public class FS20Device extends Object
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.log.LogService |
logger |
Constructor and Description |
---|
FS20Device()
empty constructor for factory
|
Modifier and Type | Method and Description |
---|---|
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
|
protected void setConnection(FHZ1000PC connection)
public void setParams(FS20DeviceProperties fs20DeviceProps, org.osgi.service.log.LogService logger)
fs20DeviceProps
- = contains all relevant propertiesnetwork
- = the conntected FS20 networklogger
- = logging servicepublic void setParams(FS20DeviceProperties fs20DeviceProps)
fs20DeviceProps
- = contains all relevant propertiesnetwork
- = the conntected FS20 networklogger
- = logging servicepublic String getDeviceLocation()
public String getDeviceURI()
public String getDeviceName()
public String getHouseCode()
public String getDeviceCode()
public String getDeviceDescription()
public String getFunctionDescription()
public FS20DeviceTypes getDeviceType()
protected void write(String houseCode, String deviceCode, Byte button) throws IOException
houseCode
- = the houseCode of the devicedeviceCode
- = the deviceCode of the devicebutton
- = the control functionIOException
- = exception if something went wrong with the communicationCopyright © 2018 universAAL Consortium. All rights reserved.