|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.aplu.nxt.UltrasonicAdapter
public class UltrasonicAdapter
Class with empty callback methods for the ultrasonic sensor.
| Constructor Summary | |
|---|---|
UltrasonicAdapter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UltrasonicAdapter()
| Method Detail |
|---|
public void far(SensorPort port,
int level)
far in interface UltrasonicListenerport - the port where the sensor is plugged inlevel - the current distance level
public void near(SensorPort port,
int level)
near in interface UltrasonicListenerport - the port where the sensor is plugged inlevel - the current distance level
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||