|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.device.DeviceListeners
public class DeviceListeners
The DeviceListeners class implements the DeviceListener interface.
ErrorListener,
DeviceListener| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
|---|
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| Fields inherited from interface org.eclipse.soda.dk.device.service.DeviceListener |
|---|
ADDED, CHANGED, REMOVED |
| Constructor Summary | |
|---|---|
DeviceListeners(DeviceListener[] objects)
Constructs an DeviceListeners object using the input parameter(s). |
|
DeviceListeners(DeviceListener currentObject,
DeviceListener newObject)
Constructs an DeviceListeners object using the input parameter(s). |
|
| Method Summary | |
|---|---|
static DeviceListener |
add(DeviceListener currentObject,
DeviceListener newObject)
Perform the add method and return the DeviceListener result. |
void |
controlChanged(DeviceService container,
java.lang.Object timestamp,
ControlService control,
int code)
The controlChanged method is called when a control was changed. |
void |
deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the DeviceService changes. |
void |
errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
The errorOccurred method is called when an error has occurred. |
DeviceListener[] |
getObjects()
Gets the DeviceListener [] objects property value. |
protected DeviceListener |
remove(DeviceListener removeHandler)
Perform the remove method and return the DeviceListener result. |
static DeviceListener |
remove(DeviceListener currentObject,
DeviceListener removeObject)
Perform the remove method and return the Object result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceListeners(DeviceListener[] objects)
DeviceListeners object using the input parameter(s).
objects - DeviceListener[]DeviceListeners(DeviceListener,DeviceListener)
public DeviceListeners(DeviceListener currentObject,
DeviceListener newObject)
DeviceListeners object using the input parameter(s).
currentObject - DeviceListenernewObject - DeviceListenerDeviceListeners(DeviceListener[])| Method Detail |
|---|
public static DeviceListener add(DeviceListener currentObject,
DeviceListener newObject)
DeviceListener result.
currentObject - DeviceListenernewObject - DeviceListener
DeviceListener) value.
public static DeviceListener remove(DeviceListener currentObject,
DeviceListener removeObject)
Object result.
currentObject - DeviceListenerremoveObject - DeviceListener
DeviceListener) value.remove(DeviceListener)
public void controlChanged(DeviceService container,
java.lang.Object timestamp,
ControlService control,
int code)
controlChanged in interface DeviceListenercontainer - org.eclipse.soda.dk.device.service.DeviceServicetimestamp - java.lang.Objectcontrol - org.eclipse.soda.dk.device.service.ControlServicecode - intdeviceChanged(DeviceService,Object,int,int)
public void deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
deviceChanged in interface DeviceListenersource - org.eclipse.soda.dk.device.service.DeviceServicetimestamp - java.lang.ObjectnewState - The new state of the DeviceService when the notification process started.oldState - The old state of the DeviceService.controlChanged(DeviceService,Object,ControlService,int)
public void errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
errorOccurred in interface ErrorListenersource - The source object that detected the error.timestamp - The time at which the error was detected.data - Contains any data about the error.public DeviceListener[] getObjects()
DeviceListener [] objects property value.
DeviceListener[]) value.protected DeviceListener remove(DeviceListener removeHandler)
DeviceListener result.
removeHandler - DeviceListener
DeviceListener) value.remove(DeviceListener,DeviceListener)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||