ch.aplu.nxt
Interface LightListener

All Known Implementing Classes:
LightAdapter

public interface LightListener

Interface with declarations of callback methods for the light sensor.


Method Summary
 void bright(SensorPort port, int level)
          Called when the light becomes brighter than the trigger level.
 void dark(SensorPort port, int level)
          Called when the light becomes darker than the trigger level.
 

Method Detail

bright

void bright(SensorPort port,
            int level)
Called when the light becomes brighter than the trigger level.

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

dark

void dark(SensorPort port,
          int level)
Called when the light becomes darker than the trigger level.

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