Package jmri.jmrit.withrottle
Class WiFiConsist
- java.lang.Object
-
- jmri.implementation.DccConsist
-
- jmri.implementation.NmraConsist
-
- jmri.jmrit.withrottle.WiFiConsist
-
- All Implemented Interfaces:
java.util.EventListener
,Consist
,ProgListener
public class WiFiConsist extends NmraConsist
-
-
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 WiFiConsist(DccLocoAddress address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(DccLocoAddress loco, boolean dirNorm)
Add a Locomotive to an Advanced Consistvoid
remove(DccLocoAddress loco)
Remove a Locomotive from this Consist.void
sendConsistCommand(DccLocoAddress loco, boolean dirNorm, WiFiConsist consist)
Send an NMRA consisting command to add or remove a loco from a consist-
Methods inherited from class jmri.implementation.NmraConsist
addToAdvancedConsist, removeFromAdvancedConsist
-
Methods 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 Detail
-
WiFiConsist
public WiFiConsist(DccLocoAddress address)
-
-
Method Detail
-
add
public void add(DccLocoAddress loco, boolean dirNorm)
Description copied from class:DccConsist
Add a Locomotive to an Advanced Consist- Specified by:
add
in interfaceConsist
- Overrides:
add
in 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
public void remove(DccLocoAddress loco)
Description copied from class:DccConsist
Remove a Locomotive from this Consist.- Specified by:
remove
in interfaceConsist
- Overrides:
remove
in classDccConsist
- Parameters:
loco
- is the Locomotive address to add to the locomotive
-
sendConsistCommand
public void sendConsistCommand(DccLocoAddress loco, boolean dirNorm, WiFiConsist consist)
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
-
-