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