public class UltrasonicAdapter extends java.lang.Object implements UltrasonicListener
| Constructor and Description | 
|---|
UltrasonicAdapter()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
far(SensorPort port,
   int level)
Empty method called when the distance exceeds the trigger level. 
 | 
void | 
near(SensorPort port,
    int level)
Empty method called when the distance falls below the trigger level. 
 | 
public void far(SensorPort port, int level)
far in interface UltrasonicListenerport - the port where the sensor is plugged inlevel - the current distance levelpublic void near(SensorPort port, int level)
near in interface UltrasonicListenerport - the port where the sensor is plugged inlevel - the current distance level