Package jmri.jmrix.openlcb
Class OpenLcbLocoAddress
- java.lang.Object
-
- jmri.DccLocoAddress
-
- jmri.jmrix.openlcb.OpenLcbLocoAddress
-
- All Implemented Interfaces:
LocoAddress
public class OpenLcbLocoAddress extends DccLocoAddress
Encapsulate information for an OpenLCB Locomotive Decoder Address. The address information is an OpenLCB node ID. This should not be a child of DccLocoAddress, but rather of LocoAddress. But the code isn't up to that right now.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jmri.LocoAddress
LocoAddress.Protocol
-
-
Field Summary
Fields Modifier and Type Field Description (package private) NodeID
node
-
Fields inherited from class jmri.DccLocoAddress
number, protocol
-
-
Constructor Summary
Constructors Constructor Description OpenLcbLocoAddress(NodeID node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object a)
NodeID
getNode()
int
hashCode()
-
Methods inherited from class jmri.DccLocoAddress
getNumber, getProtocol, isLongAddress, toString
-
-
-
-
Constructor Detail
-
OpenLcbLocoAddress
public OpenLcbLocoAddress(NodeID node)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object a)
- Overrides:
equals
in classDccLocoAddress
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDccLocoAddress
-
-