|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITemperatureInput
Simple interface to read temperature.
Note the values returned from methods in the IMeasurementInfo Interface (e.g. getMinValue(), getMaxValue(), getResolution()) should be in Celsius.
| Method Summary | |
|---|---|
double |
convertC2F(double val)
Convert from Celsius to Fahrenheit. |
double |
convertF2C(double val)
Convert from Fahrenheit to Celsius. |
double |
getCelsius()
Return the current temperature in degrees Celsius. |
double |
getFahrenheit()
Return the current temperature in degrees Fahrenheit. |
| Methods inherited from interface com.sun.spot.resources.transducers.ITransducer |
|---|
createSensorEvent, getDescription, getMaxSamplingRate, saveEventState |
| Methods inherited from interface com.sun.spot.resources.IResource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Method Detail |
|---|
double convertC2F(double val)
val - Celsius value to convert
double convertF2C(double val)
val - Fahrenheit value to convert
double getCelsius()
throws IOException
IOException
double getFahrenheit()
throws IOException
IOException
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||