Class Config

java.lang.Object
  extended by Config

public class Config
extends java.lang.Object

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.

See Also:
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

MIN_CART_NUM

public static final int MIN_CART_NUM
the minimum number of CargoCar in a generated train

See Also:
Constant Field Values

MAX_CART_NUM

public static final int MAX_CART_NUM
the maximum number of CargoCar in a generated train

See Also:
Constant Field Values

MIN_WEIGHT

public static final int MIN_WEIGHT
the minimum weight of CargoCar in a generated train

See Also:
Constant Field Values

MAX_WEIGHT

public static final int MAX_WEIGHT
the maximum weight of CargoCar in a generated train

See Also:
Constant Field Values

CARGO_ARRAY

public static final java.lang.String[] CARGO_ARRAY
Possible types of cargo carried


DEST_ARRAY

public static final java.lang.String[] DEST_ARRAY
Possible destinations


ENGINE_START

public static final java.lang.String ENGINE_START
Character before destination name in train output string

See Also:
Constant Field Values

ENGINE_END

public static final java.lang.String ENGINE_END
Character after destination name in train output

See Also:
Constant Field Values

CARGO_LINK

public static final java.lang.String CARGO_LINK
Characters before between cargo cars in train output string

See Also:
Constant Field Values

PROMPT_WELCOME_MSG

public static final java.lang.String PROMPT_WELCOME_MSG
Message at start of program

See Also:
Constant Field Values

PROMPT_MENU

public static final java.lang.String PROMPT_MENU
User menu between user choices

See Also:
Constant Field Values

PROMPT_INPUT_DEST

public static final java.lang.String PROMPT_INPUT_DEST
User input prompt for train destination

See Also:
Constant Field Values

PROMPT_INPUT_CARGO

public static final java.lang.String PROMPT_INPUT_CARGO
User input prompt for train cargo product name

See Also:
Constant Field Values

PROMPT_OUTPUT_WEIGHT

public static final java.lang.String PROMPT_OUTPUT_WEIGHT
User input prompt for train cargo weight

See Also:
Constant Field Values

PROMPT_INPUT_MOVE_SRC

public static final java.lang.String PROMPT_INPUT_MOVE_SRC
User input prompt for a src train destination for moving chain

See Also:
Constant Field Values

PROMPT_INPUT_MOVE_DST

public static final java.lang.String PROMPT_INPUT_MOVE_DST
User input prompt for a dst train destination for moving chain

See Also:
Constant Field Values

ERROR_USAGE

public static final java.lang.String ERROR_USAGE
Message displayed if program is not given correct arguments

See Also:
Constant Field Values

ERROR_FILE_READ

public static final java.lang.String ERROR_FILE_READ
Message displayed if unable to read the train input file

See Also:
Constant Field Values

ERROR_DEST_NOT_FOUND

public static final java.lang.String ERROR_DEST_NOT_FOUND
Message displaed if the destination does not match an expected destination

See Also:
Constant Field Values

ERROR_CARGO_NOT_FOUND

public static final java.lang.String ERROR_CARGO_NOT_FOUND
Message displayed if a train does not contain the requested cargo

See Also:
Constant Field Values

ERROR_DEST_OR_CARGO_NOT_FOUND

public static final java.lang.String ERROR_DEST_OR_CARGO_NOT_FOUND
Message displayed if cargo not found for that destination

See Also:
Constant Field Values

ERROR_NO_TRAIN_IN_HUB

public static final java.lang.String ERROR_NO_TRAIN_IN_HUB
Message displayed if there is no train in the hub when user expects one

See Also:
Constant Field Values

ERROR_WRONG_COMMAND

public static final java.lang.String ERROR_WRONG_COMMAND
Message displayed if user selects an invalid menu option value

See Also:
Constant Field Values
Constructor Detail

Config

public Config()