org.eclipse.soda.dk.signal.service
Interface MultiplexSignalListener
- All Superinterfaces:
- ErrorListener, SignalListener
- All Known Implementing Classes:
- Adapter, AdapterTest, ChildMeasurement, Command, CommandMeasurement, Commands, ConcreteMeasurement, ConcreteSignalFieldSignal, ControlsMeasurement, CountMeasurement, DataCommand, DeviceAdapter, DeviceCommand, DeviceProfile, DeviceTest, MeasurementCommand, MessageCommand, MethodCommand, NotificationController, ParameterCommand, Profile, ReadMeasurement, SignalFieldSignal, SignalListeners, SignalMeasurement, Signals, SimpleDataCommand, SimpleMeasurementCommand, SimpleMessageCommand, SimpleParameterCommand, SimpleTransformCommand, SleepCommand, StateCommand, TestAdapter, TotalMeasurement, TransformCommand, Wire
public interface MultiplexSignalListener
- extends SignalListener
The SignalListener interface defines the methods to be called when signal notification occurs. A SignalListener is implemented by any class which wishes to be notified whenever a particular SignalService is received. This can be useful for a
GUI, which may wish to update, when a particular SignalService, such as the RPMs changes.
- Since:
- 1.2
- Version:
- 1.2.0
- See Also:
ControlService,
ErrorListener,
SignalService
signalOccurred
void signalOccurred(SignalService source,
java.lang.Object timestamp,
ChannelService channel,
java.lang.Object data)
- This method is fired to all Listeners each time the signal triggered. The signal can be triggered when a message is received from the hardware or when the trigger method is invoked by the application. Since other notifications are blocked until
this method returns, implementors of this method should:
- Not cause the device or transport to be blocked (e.g. calling read on a measurement).
- Handle this call quickly and return.
- Parameters:
source - The source (SignalService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.data - The data (Object) parameter.
Copyright (c) 2009 IBM. See license in Legal section.