Changeset 104 in tmcsimulator for trunk/src/atmsdriver/ConsoleDriver.java


Ignore:
Timestamp:
10/12/2017 09:29:20 AM (9 years ago)
Author:
jdalbey
Message:

atmsdriver/ConsoleDriver.java Added a main method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/ConsoleDriver.java

    r103 r104  
    2424    private final List<String> dotColorInputList; 
    2525 
     26    /** Entry point for the application. 
     27     *  
     28     * @param args unused 
     29     */ 
     30    public static void main(String[] args) 
     31    { 
     32        Highways highways = new Highways( 
     33        "config/vds_data/lds.txt", 
     34        "config/vds_data/loop.txt", 
     35        "config/vds_data/highwaysMeta.txt", 
     36        "localhost", 8080); 
     37        ConsoleDriver app = new ConsoleDriver(highways); 
     38        app.runConsole(); 
     39    } 
    2640    /** 
    2741     * Constructor. Sets the highways model and generates the input validation 
     
    3549        // set input validation lists 
    3650        routeNumInputList = generateRouteNumInputList(); 
    37         dotColorInputList = new ArrayList<>(Arrays.asList("R", "Y", "G")); 
    38          
    39         // run the console driver 
    40         runConsole(); 
     51        dotColorInputList = new ArrayList<>(Arrays.asList("R", "Y", "G"));         
    4152    } 
    4253     
Note: See TracChangeset for help on using the changeset viewer.