public interface LocatedDevice extends LocatedObject
Modifier and Type | Method and Description |
---|---|
void |
addListener(LocatedDeviceListener listener)
Adds a listener to the Located device.
|
boolean |
constainsProperty(String propertyName)
Determines if the device contains a property definition with this name
|
void |
enterInZones(List<Zone> zones)
Callback notifying this device enters in one or more zones
|
GenericDevice |
getDeviceObject()
Gets a reference to the device implementation.
|
Set<String> |
getProperties()
Gets the set of properties names.
|
Object |
getPropertyValue(String propertyName)
Get the value of a property.
|
String |
getSerialNumber()
Gets the device serial number.
|
String |
getType()
Gets the device type.
|
boolean |
hasPropertyValue(String propertyName)
Determines if a property has been set.
|
void |
leavingZones(List<Zone> zones)
Callback notifying this device leaves one or more zones
|
void |
removeListener(LocatedDeviceListener listener)
Removes a listener from the Located device.
|
boolean |
removeProperty(String propertyName)
Removes a property on this device.
|
void |
setPropertyValue(String propertyName,
Object value)
Sets a property value
|
attachObject, detachObject, getCenterAbsolutePosition, setCenterAbsolutePosition
String getSerialNumber()
String getType()
Set<String> getProperties()
Object getPropertyValue(String propertyName)
propertyName
- Property namevoid setPropertyValue(String propertyName, Object value)
propertyName
- the name of propertyvalue
- the new valueboolean constainsProperty(String propertyName)
propertyName
- the property nameboolean hasPropertyValue(String propertyName)
propertyName
- the property nameboolean removeProperty(String propertyName)
propertyName
- the property namevoid addListener(LocatedDeviceListener listener)
listener
- the listener to be added.void removeListener(LocatedDeviceListener listener)
listener
- the listener to be removed.void enterInZones(List<Zone> zones)
zones
- The list of zones where the device has enteredvoid leavingZones(List<Zone> zones)
zones
- The list of zones where that device has leavedGenericDevice getDeviceObject()
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.