com.dalsemi.onewire.application.tag
Class Thermal

java.lang.Object
  |
  +--com.dalsemi.onewire.application.tag.TaggedDevice
        |
        +--com.dalsemi.onewire.application.tag.Thermal
All Implemented Interfaces:
TaggedSensor

public class Thermal
extends TaggedDevice
implements TaggedSensor

This class provides a default object for the Thermal type of a tagged 1-Wire device.


Fields inherited from class com.dalsemi.onewire.application.tag.TaggedDevice
branchVector, channel, clusterName, DeviceContainer, DeviceType, init, label, max, min, state
 
Constructor Summary
Thermal()
          Creates an object for the device.
Thermal(DSPortAdapter adapter, String netAddress)
          Creates an object for the device with the supplied address and device type connected to the supplied port adapter.
 
Method Summary
 String readSensor()
          The readSensor method returns a temperature in degrees Celsius
 
Methods inherited from class com.dalsemi.onewire.application.tag.TaggedDevice
getBranches, getChannel, getChannelAsString, getClusterName, getDeviceContainer, getDeviceType, getInit, getLabel, getMax, getMin, getOWPath, setBranches, setChannel, setChannelFromString, setClusterName, setDeviceContainer, setDeviceType, setInit, setLabel, setOWPath, setOWPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thermal

public Thermal()
Creates an object for the device.

Thermal

public Thermal(DSPortAdapter adapter,
               String netAddress)
Creates an object for the device with the supplied address and device type connected to the supplied port adapter.
Parameters:
adapter - The adapter serving the sensor.
netAddress - The 1-Wire network address of the sensor.
Method Detail

readSensor

public String readSensor()
                  throws OneWireException
The readSensor method returns a temperature in degrees Celsius
Specified by:
readSensor in interface TaggedSensor
Returns:
String temperature in degrees Celsius