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 class
NceConsistManager.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 Consist
addConsist(LocoAddress locoAddress)
Add a new NceConsist with the given address to consistTable/consistListboolean
csConsistNeedsSeperateAddress()
Does a CS consist require a separate consist address?void
delConsist(LocoAddress locoAddress)
Remove an old Consist.Consist
getConsist(LocoAddress locoAddress)
Find a Consist with this consist address, and return it.boolean
isCommandStationConsistPossible()
This implementation does not support command station assisted consists, so return false.void
requestUpdateFromLayout()
Request an update from the layout, loading Consists from the command station.void
startConsistReader()
-
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:
requestUpdateFromLayout
in interfaceConsistManager
- Overrides:
requestUpdateFromLayout
in 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:
addConsist
in 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:AbstractConsistManager
Find a Consist with this consist address, and return it.- Specified by:
getConsist
in interfaceConsistManager
- Overrides:
getConsist
in classAbstractConsistManager
- Parameters:
locoAddress
- the consist address- Returns:
- an existing or new consist
-
delConsist
public void delConsist(LocoAddress locoAddress)
Description copied from interface:ConsistManager
Remove an old Consist.- Specified by:
delConsist
in interfaceConsistManager
- Overrides:
delConsist
in classAbstractConsistManager
- Parameters:
locoAddress
- the consist address
-
startConsistReader
public void startConsistReader()
-
-