com.dalsemi.onewire.application.tag
Class Level

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

public class Level
extends TaggedDevice
implements TaggedSensor

This class provides a default object for the Level 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
Level()
          Creates an object for the device.
Level(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 the or string of the Sensor (in this case, a switch).
 
Methods inherited from class com.dalsemi.onewire.application.tag.TaggedDevice
equals, getBranches, getChannel, getChannelAsString, getClusterName, getDeviceContainer, getDeviceType, getInit, getLabel, getMax, getMin, getOWPath, hashCode, setBranches, setChannel, setChannelFromString, setClusterName, setDeviceContainer, setDeviceType, setInit, setLabel, setOWPath, setOWPath, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Level

public Level()
Creates an object for the device.

Level

public Level(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 the or string of the Sensor (in this case, a switch). The elements and represent conducting and non-conducting states of the switch, respectively.
Specified by:
readSensor in interface TaggedSensor
Returns:
String The string is associated with the conducting switch state, and the string is associated with the non-conducting state of the 1-Wire switch.


Copyright © 1999-2005 Dallas Semiconductor. All Rights Reserved.