jmri.jmrix.easydcc
Class EasyDccConsistManager

Show UML class diagram
java.lang.Object
  extended by jmri.implementation.AbstractConsistManager
      extended by jmri.jmrix.easydcc.EasyDccConsistManager
All Implemented Interfaces:
ConsistManager

public class EasyDccConsistManager
extends AbstractConsistManager


Field Summary
(package private) static org.slf4j.Logger log
           
 
Fields inherited from class jmri.implementation.AbstractConsistManager
consistTable
 
Constructor Summary
EasyDccConsistManager()
          Constructor - call the constructor for the superclass, and initialize the consist reader thread, which retrieves consist information from the command station
 
Method Summary
 Consist addConsist(DccLocoAddress address)
          Add a new EasyDccConsist with the given address to consistTable/consistList
 boolean csConsistNeedsSeperateAddress()
          Does a CS consist require a separate consist address?
 boolean isCommandStationConsistPossible()
          This implementation does support advanced consists, so return true.
 void requestUpdateFromLayout()
          Request an update from the layout, loading Consists from the command station.
protected  boolean shouldRequestUpdateFromLayout()
          Allow a request for consist updates from the layout.
 
Methods inherited from class jmri.implementation.AbstractConsistManager
addConsistListListener, decodeErrorCode, delConsist, getConsist, getConsistList, notifyConsistListChanged, removeConsistListListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.slf4j.Logger log
Constructor Detail

EasyDccConsistManager

public EasyDccConsistManager()
Constructor - call the constructor for the superclass, and initialize the consist reader thread, which retrieves consist information from the command station

Method Detail

isCommandStationConsistPossible

public boolean isCommandStationConsistPossible()
This implementation does support advanced consists, so return true.

Specified by:
isCommandStationConsistPossible in interface ConsistManager
Specified by:
isCommandStationConsistPossible in class AbstractConsistManager

csConsistNeedsSeperateAddress

public boolean csConsistNeedsSeperateAddress()
Does a CS consist require a separate consist address? CS consist addresses are assigned by the user, so return true.

Specified by:
csConsistNeedsSeperateAddress in interface ConsistManager
Specified by:
csConsistNeedsSeperateAddress in class AbstractConsistManager

addConsist

public Consist addConsist(DccLocoAddress address)
Add a new EasyDccConsist with the given address to consistTable/consistList

Specified by:
addConsist in class AbstractConsistManager

requestUpdateFromLayout

public void requestUpdateFromLayout()
Description copied from interface: ConsistManager
Request an update from the layout, loading Consists from the command station.

Specified by:
requestUpdateFromLayout in interface ConsistManager
Overrides:
requestUpdateFromLayout in class AbstractConsistManager

shouldRequestUpdateFromLayout

protected boolean shouldRequestUpdateFromLayout()
Description copied from class: AbstractConsistManager
Allow a request for consist updates from the layout. If not overridden, by a concrete subclass, this method always returns true.

Overrides:
shouldRequestUpdateFromLayout in class AbstractConsistManager
Returns:
true if the request can be made, false if not


Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads