jmri.jmrit.operations.rollingstock.engines
Class Consist

java.lang.Object
  extended by jmri.jmrit.operations.rollingstock.RollingStockGroup
      extended by jmri.jmrit.operations.rollingstock.engines.Consist

public class Consist
extends RollingStockGroup

A consist is a group of engines that is managed as one engine

Author:
Daniel Boudreau Copyright (C) 2008, 2010

Field Summary
protected  int _consistNumber
           
 
Fields inherited from class jmri.jmrit.operations.rollingstock.RollingStockGroup
_group, _lead, _name
 
Constructor Summary
Consist(String name)
           
 
Method Summary
 void dispose()
           
 int getConsistNumber()
           
 List<Engine> getEngines()
           
 void setConsistNumber(int number)
           
 
Methods inherited from class jmri.jmrit.operations.rollingstock.RollingStockGroup
add, addPropertyChangeListener, delete, firePropertyChange, getAdjustedWeightTons, getGroup, getLength, getName, getSize, isLead, removePropertyChangeListener, setLead, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_consistNumber

protected int _consistNumber
Constructor Detail

Consist

public Consist(String name)
Method Detail

getEngines

public List<Engine> getEngines()

getConsistNumber

public int getConsistNumber()

setConsistNumber

public void setConsistNumber(int number)
Parameters:
number - DCC address for this consist

dispose

public void dispose()
Overrides:
dispose in class RollingStockGroup


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