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.

File:
1 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    } 
Note: See TracChangeset for help on using the changeset viewer.