|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.universaldevices.device.model.DeviceNodeMap
public class DeviceNodeMap
This class represents the relationship between a node and a device. As we can have multiple devices (ISYs) on the network, this class maps each node to its associated device
Field Summary | |
---|---|
java.lang.String |
address
The address of the UDNode |
UDProxyDevice |
device
The the logical representation of ISY |
Constructor Summary | |
---|---|
DeviceNodeMap(UDProxyDevice device,
java.lang.String address)
Constructor |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object arg0)
|
boolean |
equals(java.lang.Object address)
Tests for equality |
boolean |
equals(UDProxyDevice device,
java.lang.String address)
Tests for equality |
java.lang.String |
toString()
Returns the node's address |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public UDProxyDevice device
public java.lang.String address
UDNode
Constructor Detail |
---|
public DeviceNodeMap(UDProxyDevice device, java.lang.String address)
device
- - the deviceaddress
- - the node addressMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(UDProxyDevice device, java.lang.String address)
Tests whether or not a device and adddress combination is the same as this instance of the class (object)
device
- - a UDProxyDevice
address
- - node's address
public boolean equals(java.lang.Object address)
Tests Whether or not another object of DeviceNodeMap
is equal to this instance the same as this instance of the class (object)
equals
in class java.lang.Object
address
- - node's address
public int compareTo(java.lang.Object arg0)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |