jmri.jmrit.operations.trains
Class TrainCommon
java.lang.Object
jmri.jmrit.operations.trains.TrainCommon
- Direct Known Subclasses:
- Router, TrainBuilder, TrainCsvCommon, TrainManifest, TrainSwitchLists
public class TrainCommon
- extends Object
Common routines for trains
- Author:
- Daniel Boudreau (C) Copyright 2008, 2009, 2010, 2011
|
Method Summary |
protected void |
addLine(PrintWriter file,
String string)
|
protected void |
addLine(PrintWriter file,
String level,
String string)
|
protected void |
dropCar(PrintWriter file,
Car car)
|
protected void |
dropEngine(PrintWriter file,
Engine engine)
|
protected void |
dropEngines(PrintWriter fileOut,
List<String> engineList,
RouteLocation rl)
|
protected String |
getCarAttribute(Car car,
String attribute,
boolean pickup,
boolean local)
|
protected void |
getCarsLocationUnknown(PrintWriter file)
|
protected String |
getDate()
|
protected String |
getEngineAttribute(Engine engine,
String attribute,
boolean pickup)
|
protected String |
getRollingStockAttribute(RollingStock rs,
String attribute,
boolean pickup,
boolean local)
|
protected int |
lineLength()
|
protected void |
newLine(PrintWriter file)
|
protected void |
pickupCar(PrintWriter file,
Car car)
|
protected void |
pickupEngine(PrintWriter file,
Engine engine)
|
protected void |
pickupEngines(PrintWriter fileOut,
List<String> engineList,
RouteLocation rl)
|
protected void |
searchForCar(PrintWriter file,
Car car)
|
protected static String |
splitString(String name)
Splits a string (example-number) as long as the second part of
the string is an integer. |
static String |
tabString(String s,
int fieldSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TAB
protected static final String TAB
- See Also:
- Constant Field Values
TrainCommon
public TrainCommon()
pickupEngines
protected void pickupEngines(PrintWriter fileOut,
List<String> engineList,
RouteLocation rl)
dropEngines
protected void dropEngines(PrintWriter fileOut,
List<String> engineList,
RouteLocation rl)
pickupEngine
protected void pickupEngine(PrintWriter file,
Engine engine)
dropEngine
protected void dropEngine(PrintWriter file,
Engine engine)
pickupCar
protected void pickupCar(PrintWriter file,
Car car)
dropCar
protected void dropCar(PrintWriter file,
Car car)
addLine
protected void addLine(PrintWriter file,
String level,
String string)
addLine
protected void addLine(PrintWriter file,
String string)
newLine
protected void newLine(PrintWriter file)
splitString
protected static String splitString(String name)
- Splits a string (example-number) as long as the second part of
the string is an integer.
- Parameters:
name -
- Returns:
- First half the string.
getCarsLocationUnknown
protected void getCarsLocationUnknown(PrintWriter file)
searchForCar
protected void searchForCar(PrintWriter file,
Car car)
getEngineAttribute
protected String getEngineAttribute(Engine engine,
String attribute,
boolean pickup)
getCarAttribute
protected String getCarAttribute(Car car,
String attribute,
boolean pickup,
boolean local)
getRollingStockAttribute
protected String getRollingStockAttribute(RollingStock rs,
String attribute,
boolean pickup,
boolean local)
getDate
protected String getDate()
tabString
public static String tabString(String s,
int fieldSize)
lineLength
protected int lineLength()
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: