Changeset 186 in tmcsimulator for trunk/test/atmsdriver


Ignore:
Timestamp:
10/28/2017 06:48:11 PM (9 years ago)
Author:
jtorres
Message:

Highways.java, FEPLine.java, LoopDetector?.java, Station.java: reconfigured the getHighwaysMeta() function to a toCondensedFormat(boolean MetaDataOnly?) method. By specifying MetaDataOnly? as true, you get the same output as the previous getHighwaysMeta() function. By specifying MetaDataOnly? as false, you get the new condensed format needed to send to the FEPSim over the socket. This allows us to use the same function to get a meta data dump, as well as get the highways data format needed for FEPSim socket. HighwaysParser?.cpp: removed the old tinyxml code, set up skeleton for new parser. NetworkReader?.h: deleted, and added HighwaysParser?.h. LoadSadDotsTest?.java and StationTest?.java: configured to use new toCondensedFormat method instead of getHighwaysMeta.

Location:
trunk/test/atmsdriver/model
Files:
2 edited

Legend:

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

    r185 r186  
    6161        ArrayList<Station> stations = fiftyfiveN.stations; 
    6262        Station sad = stations.get(0); 
    63         System.out.println(""+sad.getStationMeta()); 
     63        System.out.println(""+sad.toCondensedFormat(true)); 
    6464        assertEquals(22, sad.loops.size()); 
    6565 
     
    6969        stations = fourohfiveS.stations; 
    7070        Station happy = stations.get(0); 
    71         System.out.println(""+happy.getStationMeta()); 
     71        System.out.println(""+happy.toCondensedFormat(true)); 
    7272        assertEquals(9, happy.loops.size()); 
    7373    } 
  • trunk/test/atmsdriver/model/StationTest.java

    r103 r186  
    5050        System.out.println("getStationMeta"); 
    5151        String expResult = "2 3 4 N 1.0 0 A\n"; 
    52         String result = alpha.getStationMeta(); 
     52        String result = alpha.toCondensedFormat(true); 
    5353        assertEquals(expResult, result); 
    5454    } 
Note: See TracChangeset for help on using the changeset viewer.