|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeviceListener
The DeviceListener interface defines the methods to be called when event notification occurs. The DeviceListener interface should be implemented by any class which wishes to be notified of changes in the configuration of a DeviceService. This includes the addition of Contols, the removal of Controls, and The modification of Controls.
CommandService,
CommandListener,
ControlService,
DeviceService,
ErrorListener,
MeasurementService,
MeasurementListener,
SignalService,
SignalListener| Field Summary | |
|---|---|
static int |
ADDED
Define the added (int) constant. |
static int |
CHANGED
Define the changed (int) constant. |
static int |
REMOVED
Define the removed (int) constant. |
| Method Summary | |
|---|---|
void |
controlChanged(DeviceService device,
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. |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener |
|---|
errorOccurred |
| Field Detail |
|---|
static final int ADDED
static final int REMOVED
static final int CHANGED
| Method Detail |
|---|
void controlChanged(DeviceService device,
java.lang.Object timestamp,
ControlService control,
int code)
device - org.eclipse.soda.dk.device.service.DeviceServicetimestamp - java.lang.Objectcontrol - org.eclipse.soda.dk.device.service.ControlServicecode - intdeviceChanged(DeviceService,Object,int,int)
void deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
source - 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)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||