Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Method Detail

### 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD