|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.cmw.rda.server.ValueChangeListener
public class ValueChangeListener
The listener object that is notified when an I/O value is updated in a device server.
Each ValueChangeListener is attached to exactly one I/O point in a device
server; this association is established when the
monitorOn
method is invoked on the
server with this listener as an argument. The listener is then notified
whenever the associated value is updated or an attempt to update the value
fails due to an I/O error.
DeviceServerBase
Method Summary | |
---|---|
protected void |
finalize()
|
void |
ioFailed(IOError error)
Gets called when an attempt to update the associated value fails due to an I/O error. |
void |
valueUpdated(Data oldValue,
Data newValue,
boolean hasChanged)
Gets called when the associated value is updated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void valueUpdated(Data oldValue, Data newValue, boolean hasChanged)
oldValue
- the value before update or null, if unknownnewValue
- the updated valuehasChanged
- is true
if the new value is different from
the old one; false
otherwise.
public void ioFailed(IOError error)
error
- the IOError object that describes the error.protected void finalize()
finalize
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |