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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jmri.ConsistManager
ConsistManager.EnableListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
isValid
(package private) java.util.ArrayList<ControllerInterface>
listeners
-
Fields inherited from class jmri.implementation.AbstractConsistManager
consistTable
-
-
Constructor Summary
Constructors Constructor Description WiFiConsistManager()
-
Method Summary
All Methods Instance Methods Concrete Methods 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jmri.ConsistManager
canBeDisabled, isEnabled, registerEnableListener, unregisterEnableListener
-
-
-
-
Field Detail
-
listeners
java.util.ArrayList<ControllerInterface> listeners
-
isValid
boolean isValid
-
-
Constructor Detail
-
WiFiConsistManager
public WiFiConsistManager()
-
-
Method Detail
-
checkForBroadcastAddress
public boolean checkForBroadcastAddress(DccLocoAddress addr)
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
public Consist addConsist(LocoAddress address)
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
public void addControllerListener(ControllerInterface listener)
Add a listener to handle: listener.sendPacketToDevice(message);- Parameters:
listener
- the listener to add.
-
removeControllerListener
public void removeControllerListener(ControllerInterface listener)
-
-