com.sun.spot.sensorboard.hardware
Class ADT7411InternalTemperatureInput
java.lang.Object
com.sun.spot.sensorboard.hardware.AbstractADT7411RangeInput
com.sun.spot.sensorboard.hardware.ADT7411InternalTemperatureInput
- All Implemented Interfaces:
- IScalarInput, ITemperatureInput
public class ADT7411InternalTemperatureInput
- extends AbstractADT7411RangeInput
- implements ITemperatureInput
Sub-class of AbstractADT7411RangeInput that accesses the ADT7411 temperature sensor. Once constructed, the
ADT7411InternalTemperatureInput object provides values from the temperature sensor via the RangeInput
interface implemented by AbstractADT7411RangeInput
- Author:
- Syntropy
ADT7411InternalTemperatureInput
public ADT7411InternalTemperatureInput(IADT7411 adt7411)
- Constructor; stores addressing values
- Parameters:
adt7411 - the ADT7411 to be accessed
getCelsius
public double getCelsius()
throws IOException
- Specified by:
getCelsius in interface ITemperatureInput
- Returns:
- the current temperature as degrees celsius
- Throws:
IOException
getFahrenheit
public double getFahrenheit()
throws IOException
- Specified by:
getFahrenheit in interface ITemperatureInput
- Returns:
- the current temperature as degrees fahrenheit
- Throws:
IOException
Copyright © 2006 Sun Microsystems,
Inc. All Rights Reserved.