Changeset 87 in tmcsimulator for trunk/test/atmsdriver/model/NetworkTest.java


Ignore:
Timestamp:
10/10/2017 01:09:50 AM (9 years ago)
Author:
jtorres
Message:

merged branches/trunk into regular tmcsim/trunk. Changed Network.java to Highways.java. Highways.java: added writeToFEP(), updateSequences(), loadHighways(), and writeHighwaysMeta(). writeToFEP() is a socket client that communicates with FEPSimulator socket server. updateSequences() updates global and schedule sequences per the existing UCI plugin code and may not be necessary. loadHighways() loads the ArrayList? of Highways used in highways class, in sorted order. Stations are now implementing comparable to sort by postmile. writeHighwaysMeta() is an attempt at writing the highways meta data in condensed form, because loading time in NetworkLoader? is super long. We will eventually get rid of NetworkLoader? and do it within the Highways class for good OOP practice. There are new properties in atms_driver_properties.properties in config to support all these changes. Highway.java: new class, represents a highway which is a sorted ArrayList? of stations. This is a good checkpoint, for persistent green dots and all is working within the triangle. There is much commented out code in Highways.java which does not quite work. This commented code is an attempt at writing the condensed form highway meta data to improve loading times as described above.

Location:
trunk/test/atmsdriver
Files:
2 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/test/atmsdriver/model/NetworkTest.java

    r85 r87  
    4747    public void testToXML() { 
    4848        System.out.println("toXML"); 
    49         Network network = new Network( 
    50                 new File("test/atmsdriver/model/ldssample.txt"), 
    51                 new File("config/vds_data/loop.txt"), 
    52                 "localhost",8080); 
    53         String result = network.toXML(); 
     49        Highways highways = new Highways( 
     50                "test/atmsdriver/model/ldssample.txt", 
     51                "config/vds_data/loop.txt", 
     52                "config/vds_data/highwaysMeta.txt", 
     53                "localhost", 8080); 
     54        String result = highways.toXML(); 
    5455        assertEquals(expResult, result); 
    5556    } 
Note: See TracChangeset for help on using the changeset viewer.