|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dalsemi.onewire.application.tag.TaggedDevice
This class provides a default object for a tagged 1-Wire device.
Field Summary | |
Vector |
branchVector
A Vector of branches describing how to physically get to the tagged device through a set of 1-Wire switches. |
Integer |
channel
The channel on which to probe for info. |
String |
clusterName
The name of the cluster to which the tagged device is associated. |
OneWireContainer |
DeviceContainer
1-Wire Container for the tagged device. |
String |
DeviceType
Device type for the device (i.e., contact, switch, d2a, etc.). |
String |
init
An initialization parameter for the tagged device. |
String |
label
Label for the "name" of the device. |
String |
max
A string message representing a high or maximum value. |
String |
min
A string message representing a low or minimum value. |
Boolean |
state
A true or false describing the state of the tagged device. |
Constructor Summary | |
TaggedDevice()
Creates 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 | |
Vector |
getBranches()
Gets a vector of branches (to get to) the tagged device. |
int |
getChannel()
Gets the channel for the tagged device as an int. |
String |
getChannelAsString()
Gets the channel for the tagged device as a String. |
String |
getClusterName()
Gets the cluster name for the tagged device. |
OneWireContainer |
getDeviceContainer()
Gets the 1-Wire Container for the tagged device. |
String |
getDeviceType()
Gets the device type for the tagged device. |
String |
getInit()
Gets the init (Initialization String) for the tagged device. |
String |
getLabel()
Gets the label for the tagged device. |
String |
getMax()
Gets the max string for the tagged device. |
String |
getMin()
Gets the min string for the tagged device. |
OWPath |
getOWPath()
Gets the OWPath for the tagged device. |
void |
setBranches(Vector 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 |
setInit(String Init)
Sets the init (initialization String) for the tagged device. |
void |
setLabel(String Label)
Sets the label for the tagged device. |
void |
setOWPath(DSPortAdapter adapter,
Vector Branches)
Sets the OWPath for the tagged device. |
void |
setOWPath(OWPath branchOWPath)
Sets the OWPath for the tagged device. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public OneWireContainer DeviceContainer
public String DeviceType
public String label
public Integer channel
public String max
public String min
public Boolean state
public String init
public String clusterName
public Vector branchVector
Constructor Detail |
public TaggedDevice(DSPortAdapter adapter, String netAddress)
adapter
- The adapter serving the sensor.NetAddress
- The 1-Wire network address of the sensor.netAddress
- public TaggedDevice()
Method Detail |
public void setDeviceContainer(DSPortAdapter adapter, String netAddress)
public void setDeviceType(String tType)
tType
- public void setLabel(String Label)
Label
- public void setChannelFromString(String Channel)
Channel
- public void setChannel(int Channel)
Channel
- public void setInit(String Init)
init
- public void setClusterName(String cluster)
cluster
- public void setBranches(Vector branches)
branches
- public void setOWPath(OWPath branchOWPath)
branchOWPath
- public void setOWPath(DSPortAdapter adapter, Vector Branches)
adapter
- Branches
- public OneWireContainer getDeviceContainer()
public String getDeviceType()
public String getLabel()
public String getChannelAsString()
public int getChannel()
public String getInit()
public String getMax()
public String getMin()
public String getClusterName()
public Vector getBranches()
public OWPath getOWPath()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |