Package jmri.implementation
Class NmraConsist
java.lang.Object
jmri.implementation.DccConsist
jmri.implementation.NmraConsist
- All Implemented Interfaces:
EventListener,Consist,ProgListener
- Direct Known Subclasses:
WiFiConsist
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, consistTypeFields inherited from interface jmri.Consist
ADVANCED_CONSIST, CS_CONSIST, POSITION_LEAD, POSITION_TRAILFields inherited from interface jmri.ProgListener
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted -
Constructor Summary
ConstructorsConstructorDescriptionNmraConsist(int address) NmraConsist(DccLocoAddress address) NmraConsist(DccLocoAddress address, CommandStation cs) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToAdvancedConsist(DccLocoAddress locoAddress, boolean directionNormal) Add a Locomotive to an Advanced Consist.protected voidremoveFromAdvancedConsist(DccLocoAddress locoAddress) Remove a Locomotive from an Advanced ConsistMethods 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 Details
-
NmraConsist
-
NmraConsist
-
NmraConsist
-
-
Method Details
-
addToAdvancedConsist
Description copied from class:DccConsistAdd a Locomotive to an Advanced Consist.- Overrides:
addToAdvancedConsistin 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
Remove a Locomotive from an Advanced Consist- Overrides:
removeFromAdvancedConsistin classDccConsist- Parameters:
locoAddress- is the Locomotive address to add to the locomotive
-