Package jmri.jmrit.withrottle
Class WiFiConsistManager
java.lang.Object
jmri.implementation.AbstractConsistManager
jmri.implementation.NmraConsistManager
jmri.jmrit.withrottle.WiFiConsistManager
- All Implemented Interfaces:
ConsistManager
public class WiFiConsistManager extends NmraConsistManager
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
isValid
(package private) ArrayList<ControllerInterface>
listeners
-
Constructor Summary
Constructors Constructor Description WiFiConsistManager()
-
Method Summary
Modifier and Type Method Description Consist
addConsist(LocoAddress address)
Add a new Consist with the given address.void
addControllerListener(ControllerInterface listener)
Add a listener to handle: listener.sendPacketToDevice(message);boolean
checkForBroadcastAddress(DccLocoAddress addr)
Check to see if an address will try to broadcast (0) a programming message.void
removeControllerListener(ControllerInterface listener)
Methods inherited from class jmri.implementation.NmraConsistManager
csConsistNeedsSeperateAddress, isCommandStationConsistPossible
Methods inherited from class jmri.implementation.AbstractConsistManager
addConsistListListener, decodeErrorCode, delConsist, getConsist, getConsistList, notifyConsistListChanged, removeConsistListListener, requestUpdateFromLayout, shouldRequestUpdateFromLayout
-
Field Details
-
Constructor Details
-
WiFiConsistManager
public WiFiConsistManager()
-
-
Method Details
-
checkForBroadcastAddress
Check to see if an address will try to broadcast (0) a programming message.- Parameters:
addr
- The address to check- Returns:
- true if address is no good, otherwise false
-
addConsist
Description copied from class:AbstractConsistManager
Add a new Consist with the given address.- Overrides:
addConsist
in classNmraConsistManager
- Parameters:
address
- consist address- Returns:
- a consist at address; this will be the existing consist if a consist is already known to exist at address
-
addControllerListener
Add a listener to handle: listener.sendPacketToDevice(message);- Parameters:
listener
- the listener to add.
-
removeControllerListener
-