org.universAAL.lddi.fs20.devicemodel
Class FS20DeviceProperties

Package class diagram package FS20DeviceProperties
java.lang.Object
  extended by org.universAAL.lddi.fs20.devicemodel.FS20DeviceProperties

public class FS20DeviceProperties
extends Object

Object to describe all FS20 device properties

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

Constructor Summary
FS20DeviceProperties(String URI, String name, String housecode, String devicecode, FS20DeviceTypes type)
          Constructor of an incomplete described FS20 Device
FS20DeviceProperties(String URI, String name, String housecode, String devicecode, FS20DeviceTypes type, String value, String description, String functiondescription, String location)
          Constructor of a complete described FS20 Device
 
Method Summary
 String getDevicecode()
          Returns the devicecode of the FS20 device
 String getDeviceDescription()
          Returns a longer description of the FS20 device
 FS20DeviceTypes getDeviceType()
          Returns the device type of the FS20 device
 String getFunctionDesciption()
          Returns a longer description of the functionality of the FS20 device
 String getHousecode()
          Returns the housecode of the FS20 device
 String getLocation()
          Returns the name of the location where the FS20 device is located
 String getMeasurementValue()
          Returns the last measured value of the FS20 device
 String getName()
          Returns the name of the FS20 device
 String getURI()
          Returns the unique device ID of the FS20 device
 String toString()
          Returns all properties as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FS20DeviceProperties

public FS20DeviceProperties(String URI,
                            String name,
                            String housecode,
                            String devicecode,
                            FS20DeviceTypes type)
Constructor of an incomplete described FS20 Device

Parameters:
URI - = the unique id
name - = the name of the device, e.g. motiondetector livingroom
housecode - = the housecode, e.g. 12345678
devicecode - = the devicecode, e.g. 1234
type - = the type of the device, e.g. motionsensor, display, FMS, gong

FS20DeviceProperties

public FS20DeviceProperties(String URI,
                            String name,
                            String housecode,
                            String devicecode,
                            FS20DeviceTypes type,
                            String value,
                            String description,
                            String functiondescription,
                            String location)
Constructor of a complete described FS20 Device

Parameters:
URI - = the unique id
name - = the name of the device, e.g. motiondetector livingroom
housecode - = the housecode, e.g. 12345678
devicecode - = the devicecode, e.g. 1234
type - = the type of the device, e.g. motionsensor, display, FMS, gong
value - = the last measurement value
description - = a longer description of the device, e.g. where it is or which pictures it can show
functiondescription - = a description of it's function, e.g. measures current of coffee machine
location - = the location of the device, e.g. livingroom
Method Detail

getName

public String getName()
Returns the name of the FS20 device

Returns:
name of the FS20 device

getURI

public String getURI()
Returns the unique device ID of the FS20 device

Returns:
the unique device ID

getHousecode

public String getHousecode()
Returns the housecode of the FS20 device

Returns:
the housecode

getDevicecode

public String getDevicecode()
Returns the devicecode of the FS20 device

Returns:
the devicecode

getDeviceType

public FS20DeviceTypes getDeviceType()
Returns the device type of the FS20 device

Returns:
the device type

getMeasurementValue

public String getMeasurementValue()
Returns the last measured value of the FS20 device

Returns:
the last measured value

getDeviceDescription

public String getDeviceDescription()
Returns a longer description of the FS20 device

Returns:
description of the device

getFunctionDesciption

public String getFunctionDesciption()
Returns a longer description of the functionality of the FS20 device

Returns:
description of the function

getLocation

public String getLocation()
Returns the name of the location where the FS20 device is located

Returns:
the location of the device

toString

public String toString()
Returns all properties as a string

Overrides:
toString in class Object
Returns:
A string of all properties


Copyright © 2014 universAAL Consortium. All Rights Reserved.