Package jmri.implementation
Class DccConsistManager
- java.lang.Object
-
- jmri.implementation.AbstractConsistManager
-
- jmri.implementation.DccConsistManager
-
- All Implemented Interfaces:
ConsistManager
public class DccConsistManager extends AbstractConsistManager
The Default Consist Manager which uses the DccConsist class for the consists it builds. This implementation just tracks the consist via a table ofDccConsist
objects that handle the actual operations.
-
-
Nested Class Summary
-
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 DccConsistManager(AddressedProgrammerManager apm)
-
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.boolean
csConsistNeedsSeperateAddress()
Does a CS consist require a separate consist address?boolean
isCommandStationConsistPossible()
This implementation does NOT support Command Station consists, so return false.-
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
-
-
-
-
Constructor Detail
-
DccConsistManager
public DccConsistManager(AddressedProgrammerManager apm)
-
-
Method Detail
-
addConsist
public Consist addConsist(LocoAddress address)
Description copied from class:AbstractConsistManager
Add a new Consist with the given address.- Specified by:
addConsist
in 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
-
isCommandStationConsistPossible
public boolean isCommandStationConsistPossible()
This implementation does NOT support Command Station 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? This implementation does not support Command Station consists, so return false- Returns:
- true is command station consist requires separate address; false otherwise
-
-