dk.opi.io
Interface IOListener

All Superinterfaces:
EventListener

public interface IOListener
extends EventListener

Users implement this interface if they are interested in changes to monitored IO values


Method Summary
 void onValueChanged(IOItem e)
          Called when a data value has changed.
 

Method Detail

onValueChanged

public void onValueChanged(IOItem e)
Called when a data value has changed. Don't block this method with lengthy calculations since this will prevent the delivery of new onValueChanged() calls until it returns.
The quality of the reported IOItem must be inspected to ensure that the current value is reliable. I.e. if the method IOItem.isOldQualityGood() returns false the value returned by IOItem.getOldValue() is not reliable.

Parameters:
e - The item for which the monitored value changed. Query the IOItem in order to obtain information about the value. Use IOItem.getOldValue() to obtain the value for the item. Use IOItem.isOldQualityGood() or IOItem.getOldQuality() to obtain the quality of the item