1.0.0

org.eclipse.soda.dk.measurement.service
Interface MeasurementListener

All Superinterfaces:
ErrorListener
All Known Implementing Classes:
Adapter, AdapterTest, AgentTest, Command, Commands, ControlsMeasurement, CountMeasurement, DataCommand, DeviceAdapter, DeviceCommand, DeviceProfile, DeviceTest, DeviceTestcase, MeasurementCommand, MeasurementListeners, Measurements, MessageCommand, MethodCommand, NotificationController, ParameterCommand, Profile, SimpleDataCommand, SimpleMeasurementCommand, SimpleMessageCommand, SimpleParameterCommand, SimpleTransformCommand, SleepCommand, StateCommand, TestAdapter, TotalMeasurement, TransformCommand, Wire

public interface MeasurementListener
extends ErrorListener

The MeasurementListener interface defines the methods to be called when measurement change notification occurs. A MeasurementListener is implemented by any class which wishes to be notified whenever a particular MeasurementService changes in value. This can be useful for a GUI, which may wish to update, when a particular MeasurementService, such as the RPMs changes.

Version:
1.0.0
See Also:
Command, Measurements, ControlService, ErrorListener, MeasurementService

Method Summary
 void measurementChanged(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          This method is fired to all Listeners each time the value of the measurement changes.
 
Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener
errorOccurred
 

Method Detail

measurementChanged

void measurementChanged(MeasurementService source,
                        java.lang.Object timestamp,
                        java.lang.Object newValue,
                        java.lang.Object oldValue)
This method is fired to all Listeners each time the value of the measurement changes. Since other notifications are blocked until this method returns, implementors of this method should:

Parameters:
source - MeasurementService which changed.
timestamp - The time at which the value change was detected.
newValue - The new value of the MeasurementService.
oldValue - The old value of the MeasurementService.

1.0.0

Copyright (c) 1999, 2007 IBM