Package jmri.jmrix.nce
Class NceConsistManager
- java.lang.Object
-
- jmri.implementation.AbstractConsistManager
-
- jmri.jmrix.nce.NceConsistManager
-
- All Implemented Interfaces:
ConsistManager
public class NceConsistManager extends AbstractConsistManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classNceConsistManager.NceConsistReader-
Nested classes/interfaces inherited from interface jmri.ConsistManager
ConsistManager.EnableListener
-
-
Field Summary
-
Fields inherited from class jmri.implementation.AbstractConsistManager
consistTable
-
-
Constructor Summary
Constructors Constructor Description NceConsistManager(NceSystemConnectionMemo m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsistaddConsist(LocoAddress locoAddress)Add a new NceConsist with the given address to consistTable/consistListbooleancsConsistNeedsSeperateAddress()Does a CS consist require a separate consist address?voiddelConsist(LocoAddress locoAddress)Remove an old Consist.ConsistgetConsist(LocoAddress locoAddress)Find a Consist with this consist address, and return it.booleanisCommandStationConsistPossible()This implementation does not support command station assisted consists, so return false.voidrequestUpdateFromLayout()Request an update from the layout, loading Consists from the command station.voidstartConsistReader()-
Methods inherited from class jmri.implementation.AbstractConsistManager
addConsistListListener, decodeErrorCode, getConsistList, notifyConsistListChanged, removeConsistListListener, 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
-
-
-
-
Constructor Detail
-
NceConsistManager
public NceConsistManager(NceSystemConnectionMemo m)
-
-
Method Detail
-
requestUpdateFromLayout
public void requestUpdateFromLayout()
Request an update from the layout, loading Consists from the command station.- Specified by:
requestUpdateFromLayoutin interfaceConsistManager- Overrides:
requestUpdateFromLayoutin classAbstractConsistManager
-
isCommandStationConsistPossible
public boolean isCommandStationConsistPossible()
This implementation does not support command station assisted consists, so return false.- Returns:
- true if command station consists are supported; false otherwise
-
csConsistNeedsSeperateAddress
public boolean csConsistNeedsSeperateAddress()
Does a CS consist require a separate consist address?- Returns:
- true is command station consist requires separate address; false otherwise
-
addConsist
public Consist addConsist(LocoAddress locoAddress)
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
public Consist getConsist(LocoAddress locoAddress)
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
public void delConsist(LocoAddress locoAddress)
Description copied from interface:ConsistManagerRemove an old Consist.- Specified by:
delConsistin interfaceConsistManager- Overrides:
delConsistin classAbstractConsistManager- Parameters:
locoAddress- the consist address
-
startConsistReader
public void startConsistReader()
-
-