jmri.jmrit.operations.trains
Class TrainBuilder
java.lang.Object
jmri.jmrit.operations.trains.TrainCommon
jmri.jmrit.operations.trains.TrainBuilder
public class TrainBuilder
- extends TrainCommon
Builds a train and creates the train's manifest.
- Author:
- Daniel Boudreau Copyright (C) 2008, 2009, 2010, 2011
| Fields inherited from class jmri.jmrit.operations.trains.TrainCommon |
TAB |
|
Method Summary |
void |
build(Train train)
Build rules:
1. |
| Methods inherited from class jmri.jmrit.operations.trains.TrainCommon |
addLine, addLine, dropCar, dropEngine, dropEngines, getCarAttribute, getCarsLocationUnknown, getDate, getEngineAttribute, getRollingStockAttribute, lineLength, newLine, pickupCar, pickupEngine, pickupEngines, searchForCar, splitString, tabString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ONE
protected static final String ONE
- See Also:
- Constant Field Values
THREE
protected static final String THREE
- See Also:
- Constant Field Values
FIVE
protected static final String FIVE
- See Also:
- Constant Field Values
SEVEN
protected static final String SEVEN
- See Also:
- Constant Field Values
TrainBuilder
public TrainBuilder()
build
public void build(Train train)
- Build rules:
1. Need at least one location in route to build train
2. Select only engines and cars the that train can service
3. Optional, train must depart with the required number of moves (cars)
4. Add caboose or car with FRED to train if required
5. All cars and engines must leave staging tracks
6 When departing staging find a track matching train requirements
7. If a train is assigned to staging, all cars and engines must go there
8. Service locations based on train direction, location car types and roads
9. Ignore track direction when train is a local (serves one location)
- Parameters:
train - the train that is to be built
message windows.
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: