Package jmri.jmrix.nce
Class NceConsistManager
java.lang.Object
jmri.implementation.AbstractConsistManager
jmri.jmrix.nce.NceConsistManager
- All Implemented Interfaces:
ConsistManager
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface jmri.ConsistManager
ConsistManager.EnableListener -
Field Summary
Fields inherited from class jmri.implementation.AbstractConsistManager
consistTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConsist(LocoAddress locoAddress) Add a new NceConsist with the given address to consistTable/consistListbooleanDoes a CS consist require a separate consist address?voiddelConsist(LocoAddress locoAddress) Remove an old Consist.getConsist(LocoAddress locoAddress) Find a Consist with this consist address, and return it.booleanThis implementation does not support command station assisted consists, so return false.voidRequest an update from the layout, loading Consists from the command station.voidMethods inherited from class jmri.implementation.AbstractConsistManager
addConsistListListener, decodeErrorCode, getConsistList, notifyConsistListChanged, removeConsistListListener, shouldRequestUpdateFromLayoutMethods 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
-
Constructor Details
-
NceConsistManager
-
-
Method Details
-
requestUpdateFromLayout
Request an update from the layout, loading Consists from the command station.- Specified by:
requestUpdateFromLayoutin interfaceConsistManager- Overrides:
requestUpdateFromLayoutin classAbstractConsistManager
-
isCommandStationConsistPossible
This implementation does not support command station assisted consists, so return false.- Returns:
- true if command station consists are supported; false otherwise
-
csConsistNeedsSeperateAddress
Does a CS consist require a separate consist address?- Returns:
- true is command station consist requires separate address; false otherwise
-
addConsist
Add a new NceConsist with the given address to consistTable/consistList- Specified by:
addConsistin classAbstractConsistManager- Parameters:
locoAddress- consist address- Returns:
- a consist at address; this will be the existing consist if a consist is already known to exist at address
-
getConsist
Description copied from class:AbstractConsistManagerFind a Consist with this consist address, and return it.- Specified by:
getConsistin interfaceConsistManager- Overrides:
getConsistin classAbstractConsistManager- Parameters:
locoAddress- the consist address- Returns:
- an existing or new consist
-
delConsist
Description copied from interface:ConsistManagerRemove an old Consist.- Specified by:
delConsistin interfaceConsistManager- Overrides:
delConsistin classAbstractConsistManager- Parameters:
locoAddress- the consist address
-
startConsistReader
-