SunSPOT API V5.0


com.sun.spot.sensorboard.peripheral
Interface ITemperatureInputThresholdListener


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

thresholdExceeded

void thresholdExceeded(ITemperatureInput temp,
                       double val,
                       boolean inCelsius)
Callback for when the temperature sensor value goes above or below the specified thresholds.

Parameters:
temp - the ITemperatureInput that has crossed a threshold.
val - the current temperature sensor reading.
inCelsius - true if the current temperature is in degrees Celsius

thresholdChanged

void thresholdChanged(ITemperatureInput temp,
                      double low,
                      double high,
                      boolean inCelsius)
Callback for when the temperature sensor thresholds are changed.

Parameters:
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 V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.