Package jmri.jmrix.lenz
Class XNetConsistManager
java.lang.Object
jmri.implementation.AbstractConsistManager
jmri.jmrix.lenz.XNetConsistManager
- All Implemented Interfaces:
ConsistManager
Consist Manager for use with the XNetConsist class for the consists it builds
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.ConsistManager
ConsistManager.EnableListener -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final XNetSystemConnectionMemoprotected XNetTrafficControllerFields inherited from class jmri.implementation.AbstractConsistManager
consistTable -
Constructor Summary
ConstructorsConstructorDescriptionXNetConsistManager(XNetSystemConnectionMemo systemMemo) Constructor - call the constructor for the superclass, and initialize the consist reader thread, which retrieves consist information from the command station. -
Method Summary
Modifier and TypeMethodDescriptionaddConsist(LocoAddress address) Add a new XNetConsist with the given address to consistTable/consistList.booleanDoes a CS consist require a separate consist address?booleanThis implementation does command station consists, so return true.voidRequest an update from the layout, loading Consists from the command station.protected booleanAllow a request for consist updates from the layout.Methods inherited from class jmri.implementation.AbstractConsistManager
addConsistListListener, decodeErrorCode, delConsist, getConsist, getConsistList, notifyConsistListChanged, removeConsistListListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.ConsistManager
canBeDisabled, isAdvancedConsistPossible, isEnabled, isSingleFormConsistRequired, registerEnableListener, unregisterEnableListener
-
Field Details
-
tc
-
systemMemo
-
-
Constructor Details
-
XNetConsistManager
Constructor - call the constructor for the superclass, and initialize the consist reader thread, which retrieves consist information from the command station.- Parameters:
systemMemo- system connection.
-
-
Method Details
-
isCommandStationConsistPossible
This implementation does command station consists, so return true.- Returns:
- true if command station consists are supported; false otherwise
-
csConsistNeedsSeperateAddress
Does a CS consist require a separate consist address? CS consist addresses are assigned by the command station, so no consist address is needed, so return false.- Returns:
- true is command station consist requires separate address; false otherwise
-
addConsist
Add a new XNetConsist with the given address to consistTable/consistList.- Specified by:
addConsistin classAbstractConsistManager- 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
-
requestUpdateFromLayout
Request an update from the layout, loading Consists from the command station.- Specified by:
requestUpdateFromLayoutin interfaceConsistManager- Overrides:
requestUpdateFromLayoutin classAbstractConsistManager
-
shouldRequestUpdateFromLayout
Description copied from class:AbstractConsistManagerAllow a request for consist updates from the layout. If not overridden by a concrete subclass, this method always returns true.- Overrides:
shouldRequestUpdateFromLayoutin classAbstractConsistManager- Returns:
- true if the request can be made, false if not
-