Class Consist
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.jmrit.operations.rollingstock.RollingStockGroup<Engine>
-
- jmri.jmrit.operations.rollingstock.engines.Consist
-
- All Implemented Interfaces:
PropertyChangeFirer
,PropertyChangeProvider
public class Consist extends RollingStockGroup<Engine>
A consist is a group of engines that is managed as one engine.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_consistNumber
-
Fields inherited from class jmri.jmrit.operations.rollingstock.RollingStockGroup
_group, _lead, _name
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description Consist(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
int
getConsistNumber()
java.util.List<Engine>
getEngines()
void
setConsistNumber(int number)
-
Methods inherited from class jmri.jmrit.operations.rollingstock.RollingStockGroup
add, delete, getAdjustedWeightTons, getGroup, getLead, getName, getSize, getTotalLength, isLead, removeLead, setLead, toString
-
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
_consistNumber
protected int _consistNumber
-
-
Constructor Detail
-
Consist
public Consist(java.lang.String name)
-
-
Method Detail
-
getEngines
public java.util.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 classRollingStockGroup<Engine>
-
-