Package jmri.jmrit.withrottle
Class WiFiConsist
java.lang.Object
jmri.implementation.DccConsist
jmri.implementation.NmraConsist
jmri.jmrit.withrottle.WiFiConsist
- All Implemented Interfaces:
EventListener,Consist,ProgListener
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(DccLocoAddress loco, boolean dirNorm) Add a Locomotive to an Advanced Consistvoidremove(DccLocoAddress loco) Remove a Locomotive from this Consist.voidsendConsistCommand(DccLocoAddress loco, boolean dirNorm, WiFiConsist consist) Send an NMRA consisting command to add or remove a loco from a consistMethods inherited from class jmri.implementation.NmraConsist
addToAdvancedConsist, removeFromAdvancedConsistMethods inherited from class jmri.implementation.DccConsist
addConsistListener, contains, dispose, getConsistAddress, getConsistID, getConsistList, getConsistType, getLocoDirection, getPosition, getRosterId, isAddressAllowed, loadDecoderFile, loadDecoderFromLoco, notifyConsistListeners, programmingOpReply, removeConsistListener, resetRosterEntryCVValue, restore, restore, reverse, setConsistID, setConsistType, setPosition, setRosterEntryCVValue, setRosterId, sizeLimit, updateRosterCV
-
Constructor Details
-
WiFiConsist
-
-
Method Details
-
add
Description copied from class:DccConsistAdd a Locomotive to an Advanced Consist- Specified by:
addin interfaceConsist- Overrides:
addin classDccConsist- Parameters:
loco- is the Locomotive address to add to the locomotivedirNorm- is True if the locomotive is traveling the same direction as the consist, or false otherwise.
-
remove
Description copied from class:DccConsistRemove a Locomotive from this Consist.- Specified by:
removein interfaceConsist- Overrides:
removein classDccConsist- Parameters:
loco- is the Locomotive address to add to the locomotive
-
sendConsistCommand
Send an NMRA consisting command to add or remove a loco from a consist- Parameters:
loco- The loco to add or removedirNorm- true for normal, false for reverseconsist- The short consist address for a loco, null to remove
-