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)
Add a Locomotive to an Advanced Consist.protected void
removeFromAdvancedConsist(DccLocoAddress locoAddress)
Remove a Locomotive from an Advanced Consist-
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)
Description copied from class:DccConsist
Add a Locomotive to an Advanced Consist.- Overrides:
addToAdvancedConsist
in classDccConsist
- Parameters:
locoAddress
- is the Locomotive address to add to the locomotivedirectionNormal
- is True if the locomotive is traveling the same direction as the consist, or false otherwise.
-
removeFromAdvancedConsist
protected void removeFromAdvancedConsist(DccLocoAddress locoAddress)
Remove a Locomotive from an Advanced Consist- Overrides:
removeFromAdvancedConsist
in classDccConsist
- Parameters:
locoAddress
- is the Locomotive address to add to the locomotive
-
-