|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectConfig
public class Config
Config class has constant variables to ensure proper input and output messages for the program. DO NOT EDIT THIS FILE, OR HAND IN. WE WILL USE OUR OWN CONFIG FILE, SO BE SURE THAT YOUR PROGRAM USES THESE VALUES VIA THEIR NAMES.
Train
,
TrainHubMain
,
TrainGenerator
Field Summary | |
---|---|
static java.lang.String[] |
CARGO_ARRAY
Possible types of cargo carried |
static java.lang.String |
CARGO_LINK
Characters before between cargo cars in train output string |
static java.lang.String[] |
DEST_ARRAY
Possible destinations |
static java.lang.String |
ENGINE_END
Character after destination name in train output |
static java.lang.String |
ENGINE_START
Character before destination name in train output string |
static java.lang.String |
ERROR_CARGO_NOT_FOUND
Message displayed if a train does not contain the requested cargo |
static java.lang.String |
ERROR_DEST_NOT_FOUND
Message displaed if the destination does not match an expected destination |
static java.lang.String |
ERROR_DEST_OR_CARGO_NOT_FOUND
Message displayed if cargo not found for that destination |
static java.lang.String |
ERROR_FILE_READ
Message displayed if unable to read the train input file |
static java.lang.String |
ERROR_NO_TRAIN_IN_HUB
Message displayed if there is no train in the hub when user expects one |
static java.lang.String |
ERROR_USAGE
Message displayed if program is not given correct arguments |
static java.lang.String |
ERROR_WRONG_COMMAND
Message displayed if user selects an invalid menu option value |
static int |
MAX_CART_NUM
the maximum number of CargoCar in a generated train |
static int |
MAX_WEIGHT
the maximum weight of CargoCar in a generated train |
static int |
MIN_CART_NUM
the minimum number of CargoCar in a generated train |
static int |
MIN_WEIGHT
the minimum weight of CargoCar in a generated train |
static java.lang.String |
PROMPT_INPUT_CARGO
User input prompt for train cargo product name |
static java.lang.String |
PROMPT_INPUT_DEST
User input prompt for train destination |
static java.lang.String |
PROMPT_INPUT_MOVE_DST
User input prompt for a dst train destination for moving chain |
static java.lang.String |
PROMPT_INPUT_MOVE_SRC
User input prompt for a src train destination for moving chain |
static java.lang.String |
PROMPT_MENU
User menu between user choices |
static java.lang.String |
PROMPT_OUTPUT_WEIGHT
User input prompt for train cargo weight |
static java.lang.String |
PROMPT_WELCOME_MSG
Message at start of program |
Constructor Summary | |
---|---|
Config()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MIN_CART_NUM
public static final int MAX_CART_NUM
public static final int MIN_WEIGHT
public static final int MAX_WEIGHT
public static final java.lang.String[] CARGO_ARRAY
public static final java.lang.String[] DEST_ARRAY
public static final java.lang.String ENGINE_START
public static final java.lang.String ENGINE_END
public static final java.lang.String CARGO_LINK
public static final java.lang.String PROMPT_WELCOME_MSG
public static final java.lang.String PROMPT_MENU
public static final java.lang.String PROMPT_INPUT_DEST
public static final java.lang.String PROMPT_INPUT_CARGO
public static final java.lang.String PROMPT_OUTPUT_WEIGHT
public static final java.lang.String PROMPT_INPUT_MOVE_SRC
public static final java.lang.String PROMPT_INPUT_MOVE_DST
public static final java.lang.String ERROR_USAGE
public static final java.lang.String ERROR_FILE_READ
public static final java.lang.String ERROR_DEST_NOT_FOUND
public static final java.lang.String ERROR_CARGO_NOT_FOUND
public static final java.lang.String ERROR_DEST_OR_CARGO_NOT_FOUND
public static final java.lang.String ERROR_NO_TRAIN_IN_HUB
public static final java.lang.String ERROR_WRONG_COMMAND
Constructor Detail |
---|
public Config()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |