Package jmri.implementation
Class NmraConsist
- java.lang.Object
-
- jmri.implementation.DccConsist
-
- jmri.implementation.NmraConsist
-
- All Implemented Interfaces:
java.util.EventListener
,Consist
,ProgListener
- Direct Known Subclasses:
WiFiConsist
public class NmraConsist extends DccConsist
This is the Default DCC consist manager installed on systems which support the command station interface. It uses the NMRA consist creation packet instead of Operations Mode programming to build a consist, but otherwise is derived from the DccConsist code.
-
-
Field Summary
-
Fields inherited from class jmri.implementation.DccConsist
consistAddress, consistDir, consistID, consistList, consistPosition, consistRoster, consistType
-
Fields inherited from interface jmri.Consist
ADVANCED_CONSIST, CS_CONSIST, POSITION_LEAD, POSITION_TRAIL
-
Fields inherited from interface jmri.ProgListener
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted
-
-
Constructor Summary
Constructors Constructor Description NmraConsist(int address)
NmraConsist(DccLocoAddress address)
NmraConsist(DccLocoAddress address, CommandStation cs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addToAdvancedConsist(DccLocoAddress LocoAddress, boolean directionNormal)
protected void
removeFromAdvancedConsist(DccLocoAddress LocoAddress)
-
Methods inherited from class jmri.implementation.DccConsist
add, addConsistListener, contains, dispose, getConsistAddress, getConsistID, getConsistList, getConsistType, getLocoDirection, getPosition, getRosterId, isAddressAllowed, loadDecoderFile, loadDecoderFromLoco, notifyConsistListeners, programmingOpReply, remove, removeConsistListener, resetRosterEntryCVValue, restore, restore, reverse, setConsistID, setConsistType, setPosition, setRosterEntryCVValue, setRosterId, sizeLimit, updateRosterCV
-
-
-
-
Constructor Detail
-
NmraConsist
public NmraConsist(int address)
-
NmraConsist
public NmraConsist(DccLocoAddress address)
-
NmraConsist
public NmraConsist(DccLocoAddress address, CommandStation cs)
-
-
Method Detail
-
addToAdvancedConsist
protected void addToAdvancedConsist(DccLocoAddress LocoAddress, boolean directionNormal)
- Overrides:
addToAdvancedConsist
in classDccConsist
-
removeFromAdvancedConsist
protected void removeFromAdvancedConsist(DccLocoAddress LocoAddress)
- Overrides:
removeFromAdvancedConsist
in classDccConsist
-
-