Class ImportRoutes
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrit.operations.rollingstock.ImportCommon
-
- jmri.jmrit.operations.routes.tools.ImportRoutes
-
- All Implemented Interfaces:
java.lang.Runnable
public class ImportRoutes extends ImportCommon
This routine will import Routes from a CSV file into the operations database. The field order is as defined below.
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.operations.rollingstock.ImportCommon
BREAK, fstatus, importLine, importOkay, lineNum, lineNumber, LOCATION_TRACK_SEPARATOR, NEW_LINE
-
-
Constructor Summary
Constructors Constructor Description ImportRoutes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
Methods inherited from class jmri.jmrit.operations.rollingstock.ImportCommon
createStatusFrame, getBufferedReader, getFile, parseCommaLine, readNextLine
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
routeManager
RouteManager routeManager
-
locationManager
LocationManager locationManager
-
routesAdded
int routesAdded
-
FIELD_ROUTE_NAME
protected static final int FIELD_ROUTE_NAME
- See Also:
- Constant Field Values
-
FIELD_EMPTY
protected static final int FIELD_EMPTY
- See Also:
- Constant Field Values
-
FIELD_ROUTE_COMMENT
protected static final int FIELD_ROUTE_COMMENT
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_EMPTY
protected static final int FIELD_ROUTE_LOCATION_EMPTY
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_NAME
protected static final int FIELD_ROUTE_LOCATION_NAME
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_DIRECTION
protected static final int FIELD_ROUTE_LOCATION_DIRECTION
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_MOVES
protected static final int FIELD_ROUTE_LOCATION_MOVES
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_RANDOM
protected static final int FIELD_ROUTE_LOCATION_RANDOM
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_PICKUP_ALLOWED
protected static final int FIELD_ROUTE_LOCATION_PICKUP_ALLOWED
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_DROP_ALLOWED
protected static final int FIELD_ROUTE_LOCATION_DROP_ALLOWED
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_TRAVEL
protected static final int FIELD_ROUTE_LOCATION_TRAVEL
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_DEPARTURE_TIME
protected static final int FIELD_ROUTE_LOCATION_DEPARTURE_TIME
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_TRAIN_LENGTH
protected static final int FIELD_ROUTE_LOCATION_TRAIN_LENGTH
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_GRADE
protected static final int FIELD_ROUTE_LOCATION_GRADE
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_ICON_X
protected static final int FIELD_ROUTE_LOCATION_ICON_X
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_ICON_Y
protected static final int FIELD_ROUTE_LOCATION_ICON_Y
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_COMMENT
protected static final int FIELD_ROUTE_LOCATION_COMMENT
- See Also:
- Constant Field Values
-
FIELD_ROUTE_LOCATION_COMMENT_COLOR
protected static final int FIELD_ROUTE_LOCATION_COMMENT_COLOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImportRoutes
public ImportRoutes()
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-