ch.aplu.nxt
Interface UltrasonicListener

All Known Implementing Classes:
UltrasonicAdapter

public interface UltrasonicListener

Class with declarations of callback methods for the ultrasonic sensor.


Method Summary
 void far(SensorPort port, int level)
          Called when the distance exceeds the trigger level.
 void near(SensorPort port, int level)
          Called when the distance falls below the trigger level.
 

Method Detail

far

void far(SensorPort port,
         int level)
Called when the distance exceeds the trigger level.

Parameters:
port - the port where the sensor is plugged in
level - the current distance level

near

void near(SensorPort port,
          int level)
Called when the distance falls below the trigger level.

Parameters:
port - the port where the sensor is plugged in
level - the current distance level