ukcrobots.core
Interface SensorListener

All Known Implementing Classes:
BooleanSensorListener, SensorChangeListener

public interface SensorListener

An interface for event listeners interested in receiving the previous and current sensor values.

Note that a sensor must be active for a listener to receive notifications.

Version:
2001.12.20
Author:
d.j.barnes @at@ kent.ac.uk

Method Summary
 void stateChanged(int oldValue, int newValue)
          Called when the canonical value of a sensor changes.
 

Method Detail

stateChanged

public void stateChanged(int oldValue,
                         int newValue)
Called when the canonical value of a sensor changes.

Parameters:
oldValue - The old sensor value.
newValue - The new sensor value.