|
SunSPOT API V3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITemperatureInputThresholdListener
Implemented by classes wanting a call back when the temperature sensor value goes above or below specified thresholds.
| Method Summary | |
|---|---|
void |
thresholdChanged(ITemperatureInput temp,
double low,
double high,
boolean inCelsius)
Callback for when the temperature sensor thresholds are changed. |
void |
thresholdExceeded(ITemperatureInput temp,
double val,
boolean inCelsius)
Callback for when the temperature sensor value goes above or below the specified thresholds. |
| Method Detail |
|---|
void thresholdExceeded(ITemperatureInput temp,
double val,
boolean inCelsius)
temp - the ITemperatureInput that has crossed a threshold.val - the current temperature sensor reading.inCelsius - true if the current temperature is in degrees Celsius
void thresholdChanged(ITemperatureInput temp,
double low,
double high,
boolean inCelsius)
temp - the ITemperatureInput that had its threshold values changed.low - the new temperature sensor low threshold value.high - the new temperature sensor high threshold value.inCelsius - true if the threshold values are in degrees Celsius
|
SunSPOT API V3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||