Class TaggedDevice
java.lang.Object
com.dalsemi.onewire.application.tag.TaggedDevice
This class provides a default object for a tagged 1-Wire device.
-
Field Summary
Modifier and TypeFieldDescriptionA Vector of branches describing how to physically get to the tagged device through a set of 1-Wire switches.The channel on which to probe for info.The name of the cluster to which the tagged device is associated.1-Wire Container for the tagged device.Device type for the device (i.e., contact, switch, d2a, etc.).An initialization parameter for the tagged device.Label for the "name" of the device.A string message representing a high or maximum value.A string message representing a low or minimum value.A true or false describing the state of the tagged device. -
Constructor Summary
ConstructorDescriptionCreates an object for the device.TaggedDevice
(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
Modifier and TypeMethodDescriptionboolean
Gets a vector of branches (to get to) the tagged device.int
Gets the channel for the tagged device as an int.Gets the channel for the tagged device as a String.Gets the cluster name for the tagged device.Gets the 1-Wire Container for the tagged device.Gets the device type for the tagged device.getInit()
Gets the init (Initialization String) for the tagged device.getLabel()
Gets the label for the tagged device.getMax()
Gets the max string for the tagged device.getMin()
Gets the min string for the tagged device.Gets the OWPath for the tagged device.int
hashCode()
void
setBranches
(Vector<TaggedDevice> branches) Sets the vector of branches to get to the tagged device.void
setChannel
(int channel) Sets the channel for the tagged device from an int.void
setChannelFromString
(String Channel) Sets the channel for the tagged device from a String.void
setClusterName
(String cluster) Sets the cluster name for the tagged device.void
setDeviceContainer
(DSPortAdapter adapter, String netAddress) Sets the 1-Wire Container for the tagged device.void
setDeviceType
(String tType) Sets the device type for the tagged device.void
Sets the init (initialization String) for the tagged device.void
Sets the label for the tagged device.void
setOWPath
(DSPortAdapter adapter, Vector<TaggedDevice> Branches) Sets the OWPath for the tagged device.void
Sets the OWPath for the tagged device.toString()
-
Field Details
-
DeviceContainer
1-Wire Container for the tagged device. -
DeviceType
Device type for the device (i.e., contact, switch, d2a, etc.). -
label
Label for the "name" of the device. -
channel
The channel on which to probe for info. -
max
A string message representing a high or maximum value. -
min
A string message representing a low or minimum value. -
state
A true or false describing the state of the tagged device. -
init
An initialization parameter for the tagged device. -
clusterName
The name of the cluster to which the tagged device is associated. Nested clusters will have a forward slash ("/") between each cluster, much like a path. -
branchVector
A Vector of branches describing how to physically get to the tagged device through a set of 1-Wire switches.
-
-
Constructor Details
-
TaggedDevice
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.
-
TaggedDevice
public TaggedDevice()Creates an object for the device.
-
-
Method Details
-
setDeviceContainer
Sets the 1-Wire Container for the tagged device. -
setDeviceType
Sets the device type for the tagged device.- Parameters:
tType
-
-
setLabel
Sets the label for the tagged device.- Parameters:
Label
-
-
setChannelFromString
Sets the channel for the tagged device from a String.- Parameters:
Channel
-
-
setChannel
public void setChannel(int channel) Sets the channel for the tagged device from an int.- Parameters:
Channel
-
-
setInit
Sets the init (initialization String) for the tagged device.- Parameters:
init
-
-
setClusterName
Sets the cluster name for the tagged device.- Parameters:
cluster
-
-
setBranches
Sets the vector of branches to get to the tagged device.- Parameters:
branches
-
-
setOWPath
Sets the OWPath for the tagged device. An OWPath is a description of how to physically get to a 1-Wire device through a set of nested 1-Wire switches.- Parameters:
branchOWPath
-
-
setOWPath
Sets the OWPath for the tagged device. An OWPath is a description of how to physically get to a 1-Wire device through a set of nested 1-Wire switches.- Parameters:
adapter
-Branches
-
-
getDeviceContainer
Gets the 1-Wire Container for the tagged device.- Returns:
- The 1-Wire container for the tagged device.
-
getDeviceType
Gets the device type for the tagged device.- Returns:
- The device type for the tagged device.
-
getLabel
Gets the label for the tagged device.- Returns:
- The label for the tagged device.
-
getChannelAsString
Gets the channel for the tagged device as a String.- Returns:
- The channel for the tagged device as a String.
-
getChannel
public int getChannel()Gets the channel for the tagged device as an int.- Returns:
- The channel for the tagged device as an int.
-
getInit
Gets the init (Initialization String) for the tagged device.- Returns:
- String init (Initialization String)
-
getMax
Gets the max string for the tagged device.- Returns:
- String Gets the max string
-
getMin
Gets the min string for the tagged device.- Returns:
- String Gets the min string
-
getClusterName
Gets the cluster name for the tagged device.- Returns:
- The cluster name for the tagged device.
-
getBranches
Gets a vector of branches (to get to) the tagged device.- Returns:
- The vector of branches to get to the tagged device.
-
getOWPath
Gets the OWPath for the tagged device. An OWPath is a description of how to physically get to a 1-Wire device through a set of nested 1-Wire switches.- Returns:
- The OWPath for the tagged device.
-
equals
-
hashCode
public int hashCode() -
toString
-