jmri.jmrix.lenz
Class XNetConsistManager

java.lang.Object
  extended by jmri.jmrix.AbstractConsistManager
      extended by jmri.jmrix.lenz.XNetConsistManager
All Implemented Interfaces:
ConsistManager

public final class XNetConsistManager
extends AbstractConsistManager
implements ConsistManager

Consist Manager for use with the XNetConsist class for the consists it builds

Author:
Paul Bender Copyright (C) 2004-2010

Field Summary
protected  XNetTrafficController tc
           
 
Fields inherited from class jmri.jmrix.AbstractConsistManager
consistList, consistTable
 
Constructor Summary
XNetConsistManager(XNetSystemConnectionMemo systemMemo)
          Constructor - call the constructor for the superclass, and initilize the consist reader thread, which retrieves consist information from the command station
 
Method Summary
 Consist addConsist(DccLocoAddress address)
          Add a new XNetConsist with the given address to consistTable/consistList
 boolean csConsistNeedsSeperateAddress()
          Does a CS consist require a seperate consist address?
 boolean isCommandStationConsistPossible()
          This implementation does command station consists, so return true.
 
Methods inherited from class jmri.jmrix.AbstractConsistManager
decodeErrorCode, delConsist, getConsist, getConsistList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.ConsistManager
decodeErrorCode, delConsist, getConsist, getConsistList
 

Field Detail

tc

protected XNetTrafficController tc
Constructor Detail

XNetConsistManager

public XNetConsistManager(XNetSystemConnectionMemo systemMemo)
Constructor - call the constructor for the superclass, and initilize the consist reader thread, which retrieves consist information from the command station

Method Detail

isCommandStationConsistPossible

public boolean isCommandStationConsistPossible()
This implementation does command station 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 seperate consist address? CS consist addresses are assigned by the command station, so no consist address is needed, so return false

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

addConsist

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

Specified by:
addConsist in class AbstractConsistManager


Copyright © 1997 - 2011 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