Package jmri.jmrix.internal
Class InternalConsistManager
- java.lang.Object
-
- jmri.implementation.AbstractConsistManager
-
- jmri.jmrix.internal.InternalConsistManager
-
- All Implemented Interfaces:
ConsistManager
public class InternalConsistManager extends AbstractConsistManager
Default Consist Manager which uses the NmraConsist class for the consists it builds.
-
-
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 InternalConsistManager()
-
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 command station consist require a separate consist address from locomotives in consist?boolean
isCommandStationConsistPossible()
Does this implementation support Command Station Consists?-
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
-
InternalConsistManager
public InternalConsistManager()
-
-
Method Detail
-
isCommandStationConsistPossible
public boolean isCommandStationConsistPossible()
Does this implementation support Command Station Consists?- Returns:
- true if command station consists are supported; false otherwise
-
csConsistNeedsSeperateAddress
public boolean csConsistNeedsSeperateAddress()
Does a command station consist require a separate consist address from locomotives in consist?- Returns:
- true is command station consist requires separate address; false otherwise
-
addConsist
public Consist addConsist(LocoAddress address)
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
-
-