|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.aplu.nxt.LightAdapter
public class LightAdapter
Class with empty callback methods for the light sensor.
| Constructor Summary | |
|---|---|
LightAdapter()
|
|
| Method Summary | |
|---|---|
void |
bright(SensorPort port,
int level)
Empty method called when the light becomes brighter than the trigger level. |
void |
dark(SensorPort port,
int level)
Empty method called when the light becomes darker than the trigger level. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LightAdapter()
| Method Detail |
|---|
public void bright(SensorPort port,
int level)
bright in interface LightListenerport - the port where the sensor is plugged inlevel - the current light level.
public void dark(SensorPort port,
int level)
dark in interface LightListenerport - the port where the sensor is plugged inlevel - the current light level
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||