Class ImportLocations
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrit.operations.rollingstock.ImportRollingStock
-
- jmri.jmrit.operations.locations.tools.ImportLocations
-
- All Implemented Interfaces:
java.lang.Runnable
public class ImportLocations extends ImportRollingStock
This routine will import Locations from a CSV file into the operations database. The field order is: Location, Track, Type, Length, Division, Serviced by Trains Traveling, Rolling Stock, Order, Road Option, Roads, Load Option, Loads, Ship Load Option, Ships, Set Out Restrictions, Restrictions, Pick up Restrictions, Restrictions, Schedule Name, Mode, Alternate Track, Pool name, Minimum, Track Blocking Order, Planned Pick Ups, Track Destinations, Destinations, Swap default loads and empties, Empty cars with default loads, Generate custom loads for spurs serviced by this train, Generate custom loads for any spur (multiple trains), Generate custom loads for any staging track, Block cars by pick up location, Comment, Comment when there is only pick ups, Comment when there is only set outs
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DivisionManager
divisionManager
protected static int
FIELD_ALTERNATE_TRACK
protected static int
FIELD_BLOCK_CARS_BY_PICKUP
protected static int
FIELD_COMMENT
protected static int
FIELD_COMMENT_BOTH
protected static int
FIELD_COMMENT_PICKUPS
protected static int
FIELD_COMMENT_SETOUTS
protected static int
FIELD_DESTINATIONS
protected static int
FIELD_DIVISION
protected static int
FIELD_EMPTY_CUSTOM_LOADS
protected static int
FIELD_EMPTY_DEFAULT_LOADS
protected static int
FIELD_GENERATE_ANY_SPUR
protected static int
FIELD_GENERATE_SPUR
protected static int
FIELD_GENERATE_STAGING
protected static int
FIELD_HOLD_CARS_CUSTOM_LOADS
protected static int
FIELD_IGNORE_MINIMUM
protected static int
FIELD_LENGTH
protected static int
FIELD_LOAD_OPTION
protected static int
FIELD_LOADS
protected static int
FIELD_LOCATION
protected static int
FIELD_ORDER
protected static int
FIELD_PERCENT_STAGING
protected static int
FIELD_PICK_UP_RESTRICTIONS
protected static int
FIELD_PLANNED_PICK_UPS
protected static int
FIELD_POOL_NAME
protected static int
FIELD_RESTRICTIONS_1
protected static int
FIELD_RESTRICTIONS_2
protected static int
FIELD_ROAD_OPTION
protected static int
FIELD_ROADS
protected static int
FIELD_ROLLING_STOCK
protected static int
FIELD_SCHEDULE_MODE
protected static int
FIELD_SCHEDULE_NAME
protected static int
FIELD_SERVICED_BY
protected static int
FIELD_SET_OUT_RESTRICTIONS
protected static int
FIELD_SHIP_LOAD_OPTION
protected static int
FIELD_SHIPS
protected static int
FIELD_SWAP_DEFAULT
protected static int
FIELD_TRACK
protected static int
FIELD_TRACK_BLOCKING_ORDER
protected static int
FIELD_TRACK_DESTINATIONS
protected static int
FIELD_TYPE
(package private) LocationManager
locationManager
-
Fields inherited from class jmri.jmrit.operations.rollingstock.ImportRollingStock
fstatus, importLine, lineNumber, LOCATION_TRACK_SEPARATOR, NEW_LINE
-
-
Constructor Summary
Constructors Constructor Description ImportLocations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
Methods inherited from class jmri.jmrit.operations.rollingstock.ImportRollingStock
createStatusFrame, getBufferedReader, getFile, parseCommaLine
-
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
-
locationManager
LocationManager locationManager
-
divisionManager
DivisionManager divisionManager
-
FIELD_LOCATION
protected static final int FIELD_LOCATION
- See Also:
- Constant Field Values
-
FIELD_TRACK
protected static final int FIELD_TRACK
- See Also:
- Constant Field Values
-
FIELD_TYPE
protected static final int FIELD_TYPE
- See Also:
- Constant Field Values
-
FIELD_LENGTH
protected static final int FIELD_LENGTH
- See Also:
- Constant Field Values
-
FIELD_DIVISION
protected static final int FIELD_DIVISION
- See Also:
- Constant Field Values
-
FIELD_SERVICED_BY
protected static final int FIELD_SERVICED_BY
- See Also:
- Constant Field Values
-
FIELD_ROLLING_STOCK
protected static final int FIELD_ROLLING_STOCK
- See Also:
- Constant Field Values
-
FIELD_ORDER
protected static final int FIELD_ORDER
- See Also:
- Constant Field Values
-
FIELD_ROAD_OPTION
protected static final int FIELD_ROAD_OPTION
- See Also:
- Constant Field Values
-
FIELD_ROADS
protected static final int FIELD_ROADS
- See Also:
- Constant Field Values
-
FIELD_LOAD_OPTION
protected static final int FIELD_LOAD_OPTION
- See Also:
- Constant Field Values
-
FIELD_LOADS
protected static final int FIELD_LOADS
- See Also:
- Constant Field Values
-
FIELD_SHIP_LOAD_OPTION
protected static final int FIELD_SHIP_LOAD_OPTION
- See Also:
- Constant Field Values
-
FIELD_SHIPS
protected static final int FIELD_SHIPS
- See Also:
- Constant Field Values
-
FIELD_SET_OUT_RESTRICTIONS
protected static final int FIELD_SET_OUT_RESTRICTIONS
- See Also:
- Constant Field Values
-
FIELD_RESTRICTIONS_1
protected static final int FIELD_RESTRICTIONS_1
- See Also:
- Constant Field Values
-
FIELD_PICK_UP_RESTRICTIONS
protected static final int FIELD_PICK_UP_RESTRICTIONS
- See Also:
- Constant Field Values
-
FIELD_RESTRICTIONS_2
protected static final int FIELD_RESTRICTIONS_2
- See Also:
- Constant Field Values
-
FIELD_SCHEDULE_NAME
protected static final int FIELD_SCHEDULE_NAME
- See Also:
- Constant Field Values
-
FIELD_SCHEDULE_MODE
protected static final int FIELD_SCHEDULE_MODE
- See Also:
- Constant Field Values
-
FIELD_PERCENT_STAGING
protected static final int FIELD_PERCENT_STAGING
- See Also:
- Constant Field Values
-
FIELD_ALTERNATE_TRACK
protected static final int FIELD_ALTERNATE_TRACK
- See Also:
- Constant Field Values
-
FIELD_POOL_NAME
protected static final int FIELD_POOL_NAME
- See Also:
- Constant Field Values
-
FIELD_IGNORE_MINIMUM
protected static final int FIELD_IGNORE_MINIMUM
- See Also:
- Constant Field Values
-
FIELD_TRACK_BLOCKING_ORDER
protected static final int FIELD_TRACK_BLOCKING_ORDER
- See Also:
- Constant Field Values
-
FIELD_PLANNED_PICK_UPS
protected static final int FIELD_PLANNED_PICK_UPS
- See Also:
- Constant Field Values
-
FIELD_TRACK_DESTINATIONS
protected static final int FIELD_TRACK_DESTINATIONS
- See Also:
- Constant Field Values
-
FIELD_DESTINATIONS
protected static final int FIELD_DESTINATIONS
- See Also:
- Constant Field Values
-
FIELD_HOLD_CARS_CUSTOM_LOADS
protected static final int FIELD_HOLD_CARS_CUSTOM_LOADS
- See Also:
- Constant Field Values
-
FIELD_SWAP_DEFAULT
protected static final int FIELD_SWAP_DEFAULT
- See Also:
- Constant Field Values
-
FIELD_EMPTY_DEFAULT_LOADS
protected static final int FIELD_EMPTY_DEFAULT_LOADS
- See Also:
- Constant Field Values
-
FIELD_EMPTY_CUSTOM_LOADS
protected static final int FIELD_EMPTY_CUSTOM_LOADS
- See Also:
- Constant Field Values
-
FIELD_GENERATE_SPUR
protected static final int FIELD_GENERATE_SPUR
- See Also:
- Constant Field Values
-
FIELD_GENERATE_ANY_SPUR
protected static final int FIELD_GENERATE_ANY_SPUR
- See Also:
- Constant Field Values
-
FIELD_GENERATE_STAGING
protected static final int FIELD_GENERATE_STAGING
- See Also:
- Constant Field Values
-
FIELD_BLOCK_CARS_BY_PICKUP
protected static final int FIELD_BLOCK_CARS_BY_PICKUP
- See Also:
- Constant Field Values
-
FIELD_COMMENT
protected static final int FIELD_COMMENT
- See Also:
- Constant Field Values
-
FIELD_COMMENT_BOTH
protected static final int FIELD_COMMENT_BOTH
- See Also:
- Constant Field Values
-
FIELD_COMMENT_PICKUPS
protected static final int FIELD_COMMENT_PICKUPS
- See Also:
- Constant Field Values
-
FIELD_COMMENT_SETOUTS
protected static final int FIELD_COMMENT_SETOUTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImportLocations
public ImportLocations()
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-