josx.platform.rcx
Interface SensorListener
- All Known Implementing Classes:
- ProximitySensor, Servo
public interface SensorListener
Listener of sensor events.
- See Also:
Sensor.addSensorListener(josx.platform.rcx.SensorListener)
|
Method Summary |
void |
stateChanged(Sensor aSource,
int aOldValue,
int aNewValue)
Called when the canonical value of the sensor changes. |
stateChanged
void stateChanged(Sensor aSource,
int aOldValue,
int aNewValue)
- Called when the canonical value of the sensor changes.
- Parameters:
aSource - The sensor that generated the event.aOldValue - The old sensor value.aNewValue - The new sensor value.