Package jmri.jmrix.easydcc
Class EasyDccConsistManager
- java.lang.Object
- 
- jmri.implementation.AbstractConsistManager
- 
- jmri.jmrix.easydcc.EasyDccConsistManager
 
 
- 
- All Implemented Interfaces:
- ConsistManager
 
 public class EasyDccConsistManager extends AbstractConsistManager 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jmri.ConsistManagerConsistManager.EnableListener
 
- 
 - 
Field Summary- 
Fields inherited from class jmri.implementation.AbstractConsistManagerconsistTable
 
- 
 - 
Constructor SummaryConstructors Constructor Description EasyDccConsistManager(EasyDccSystemConnectionMemo memo)Constructor - call the constructor for the superclass, and initialize the consist reader thread, which retrieves consist information from the command station.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsistaddConsist(LocoAddress address)Add a new EasyDccConsist with the given address to consistTable/consistList.booleancsConsistNeedsSeperateAddress()Does a CS consist require a separate consist address?booleanisCommandStationConsistPossible()This implementation does support advanced consists, so return true.voidrequestUpdateFromLayout()Request an update from the layout, loading Consists from the command station.protected booleanshouldRequestUpdateFromLayout()Allow a request for consist updates from the layout.- 
Methods inherited from class jmri.implementation.AbstractConsistManageraddConsistListListener, decodeErrorCode, delConsist, getConsist, getConsistList, notifyConsistListChanged, removeConsistListListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jmri.ConsistManagercanBeDisabled, isEnabled, registerEnableListener, unregisterEnableListener
 
- 
 
- 
- 
- 
Constructor Detail- 
EasyDccConsistManagerpublic EasyDccConsistManager(EasyDccSystemConnectionMemo memo) Constructor - call the constructor for the superclass, and initialize the consist reader thread, which retrieves consist information from the command station.- Parameters:
- memo- the associated connection memo
 
 
- 
 - 
Method Detail- 
isCommandStationConsistPossiblepublic boolean isCommandStationConsistPossible() This implementation does support advanced consists, so return true.- Returns:
- true if command station consists are supported; false otherwise
 
 - 
csConsistNeedsSeperateAddresspublic boolean csConsistNeedsSeperateAddress() Does a CS consist require a separate consist address? CS consist addresses are assigned by the user, so return true.- Returns:
- true is command station consist requires separate address; false otherwise
 
 - 
addConsistpublic Consist addConsist(LocoAddress address) Add a new EasyDccConsist with the given address to consistTable/consistList.- Specified by:
- addConsistin class- AbstractConsistManager
- 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
 
 - 
requestUpdateFromLayoutpublic void requestUpdateFromLayout() Description copied from interface:ConsistManagerRequest an update from the layout, loading Consists from the command station.- Specified by:
- requestUpdateFromLayoutin interface- ConsistManager
- Overrides:
- requestUpdateFromLayoutin class- AbstractConsistManager
 
 - 
shouldRequestUpdateFromLayoutprotected boolean shouldRequestUpdateFromLayout() Description copied from class:AbstractConsistManagerAllow a request for consist updates from the layout. If not overridden by a concrete subclass, this method always returns true.- Overrides:
- shouldRequestUpdateFromLayoutin class- AbstractConsistManager
- Returns:
- true if the request can be made, false if not
 
 
- 
 
-