Package jmri
Class DccLocoAddress
java.lang.Object
jmri.DccLocoAddress
- All Implemented Interfaces:
LocoAddress
- Direct Known Subclasses:
OpenLcbLocoAddress
Encapsulate information for a DCC Locomotive Decoder Address.
In particular, this handles the "short" (standard) vs "extended" (long)
address selection.
An address must be one of these, hence short vs long is encoded as a boolean.
Once created, the number and long/short status cannot be changed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.LocoAddress
LocoAddress.Protocol -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDccLocoAddress(int number, boolean isLong) DccLocoAddress(int number, LocoAddress.Protocol protocol) -
Method Summary
-
Field Details
-
number
-
protocol
-
-
Constructor Details
-
DccLocoAddress
-
DccLocoAddress
-
DccLocoAddress
-
-
Method Details
-
equals
-
hashCode
-
toString
-
isLongAddress
-
getProtocol
- Specified by:
getProtocolin interfaceLocoAddress
-
getNumber
- Specified by:
getNumberin interfaceLocoAddress
-