faa.misc.thermo
Class thermoDev

java.lang.Object
  extended by faa.misc.oneWire.oneWireDev
      extended by faa.misc.thermo.thermoDev

public class thermoDev
extends oneWireDev

thermoDev represents a Dallas Semiconductor One-Wire Device such as the DS1820 thermometer. Source: thermoDev.java

Version:
$Id: thermoDev.java,v 3.1 2006/03/14 15:47:35 samf Exp $
Author:
David Lonkart
See Also:
faa.misc.thermo.oneWireDev

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  float temperature
           
 
Fields inherited from class faa.misc.oneWire.oneWireDev
bus, DS1820, ROM_code, UNKNOWN
 
Constructor Summary
thermoDev(byte[] ROMcode, oneWireBus bus)
          Construct a thermometer device.
 
Method Summary
 float getCelsius()
          Get the temperature in degrees celsius.
 float getFarenheit()
          Get the temperature in degrees farenheit.
 void measureTemp()
          Measure the temperature.
 void measureTempHigh()
          Measure the temperature with high resolution.
 void measureTempLow()
          Measure the temperature with low resolution.
 
Methods inherited from class faa.misc.oneWire.oneWireDev
getCRC, getDescription, getFamilyCode, getROMCode, getSerialNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

temperature

private float temperature
Constructor Detail

thermoDev

public thermoDev(byte[] ROMcode,
                 oneWireBus bus)
Construct a thermometer device.

Parameters:
ROMcode - Unique 64 bit ROM code for this device.
bus - The One wire bus to which this device is connected.
Method Detail

getFarenheit

public float getFarenheit()
Get the temperature in degrees farenheit.

Returns:
The temperature in degrees farenheit

getCelsius

public float getCelsius()
Get the temperature in degrees celsius.

Returns:
The temperature in degrees celsius

measureTemp

public void measureTemp()
Measure the temperature.


measureTempHigh

public void measureTempHigh()
Measure the temperature with high resolution.


measureTempLow

public void measureTempLow()
Measure the temperature with low resolution.