Changeset 184 in tmcsimulator for trunk/src/atmsdriver/ConsoleTrafficDriver.java


Ignore:
Timestamp:
10/28/2017 05:24:02 PM (9 years ago)
Author:
jtorres
Message:

highways.java: converted to immutable, removed use of FEPLineLoader and added loadLines(), loadLine(), loadStation(), and loadLoop() methods. Renamed loadHighways() to configureHighways(), renamed writeHighwaysMeta() to getHighwaysMeta() which now returns a String containing metadata instead of opening a file and writing to it, which is more flexible. FEPLineLoader.java: deleted, no longer need it. FEPLine.java: converted to immutable, removed unnecessary member variables and adjusted all methods accordingly. Station.java: MLTotVol() and OppTotVol?() are now being updated at end of updateByDirection(). ATMSDriver.java: Now using one config file: highways_fullmap.txt, as opposed to the older lds.txt and loop.txt files. config/vds_data: added highways_fullmap.txt. config/atms_driver_config.properties, atms_driver_config_local.properties: updated config to reflect use of highways_fullmap.txt instead of old loop.txt and lds.txt configuration. ATMSBatchDriver.java: conformed highways initialization in constructor to reflect use of highways_fullmap.txt

File:
1 edited

Legend:

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

    r180 r184  
    88import java.io.FileInputStream; 
    99import java.util.ArrayList; 
    10 import java.util.Arrays; 
    1110import java.util.List; 
    1211import java.util.Properties; 
     
    4847                // Create the Highway Model 
    4948                Highways highways = new Highways( 
    50                     "config/vds_data/lds.txt", 
    51                     "config/vds_data/loop.txt", 
    52                     "config/vds_data/highwaysMeta.txt", 
     49                    "config/vds_data/highways_fullmap.txt", 
    5350                    ConsoleDriverProperties.getProperty( 
    5451                        "FEPWriterHost"), 
Note: See TracChangeset for help on using the changeset viewer.