|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.resources.transducers.SensorEvent
com.sun.spot.resources.transducers.TemperatureInputEvent
com.sun.spot.sensorboard.peripheral.ADT7411TemperatureInputEvent
public class ADT7411TemperatureInputEvent
Capture the state of an ADT7411 temperature input event so it can be reported to a callback.
| Field Summary | |
|---|---|
protected boolean |
inCelsius
|
protected double |
newHighThreshold
|
protected double |
newLowThreshold
|
protected boolean |
thresholdChanged
|
| Fields inherited from class com.sun.spot.resources.transducers.TemperatureInputEvent |
|---|
value |
| Fields inherited from class com.sun.spot.resources.transducers.SensorEvent |
|---|
sensor, when |
| Constructor Summary | |
|---|---|
ADT7411TemperatureInputEvent(ITransducer sensor,
boolean inCelsius)
Constructor |
|
| Method Summary | |
|---|---|
double |
getHighThresholdCelsius()
Get the new high threshold value in Celsius. |
double |
getHighThresholdFahrenheit()
Get the new high threshold value in Fahrenheit. |
double |
getLowThresholdCelsius()
Get the new low threshold value in Celsius. |
double |
getLowThresholdFahrenheit()
Get the new low threshold value in Fahrenheit. |
boolean |
isInCelsius()
Are the threshold values in Celsius? |
boolean |
isThresholdChanged()
Is this a threshold changed event? |
void |
setThresholds(double newLow,
double newHigh)
Set the new threshold values. |
| Methods inherited from class com.sun.spot.resources.transducers.TemperatureInputEvent |
|---|
getCelsius, getFahrenheit, getTemperatureInput, setCelsius, setFahrenheit |
| Methods inherited from class com.sun.spot.resources.transducers.SensorEvent |
|---|
getSensor, getTime, setTime |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean thresholdChanged
protected double newLowThreshold
protected double newHighThreshold
protected boolean inCelsius
| Constructor Detail |
|---|
public ADT7411TemperatureInputEvent(ITransducer sensor,
boolean inCelsius)
sensor - the ISwitch sensor| Method Detail |
|---|
public void setThresholds(double newLow,
double newHigh)
newLow - the new low threshold valuenewHigh - the new high threshold valuepublic boolean isThresholdChanged()
public boolean isInCelsius()
public double getLowThresholdCelsius()
public double getHighThresholdCelsius()
public double getLowThresholdFahrenheit()
public double getHighThresholdFahrenheit()
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||