Changeset 345 in tmcsimulator for trunk/src/tmcsim


Ignore:
Timestamp:
03/24/2019 09:48:29 AM (7 years ago)
Author:
jdalbey
Message:

minor changes to output messages to get unit tests to pass. All passing now.

Location:
trunk/src/tmcsim
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/application.properties

    r343 r345  
    1 #Sat, 23 Mar 2019 19:09:36 -0700 
     1#Sun, 24 Mar 2019 11:13:40 -0700 
    22 
    3 Application.revision=342 
     3Application.revision=344 
    44 
    5 Application.buildnumber=108 
     5Application.buildnumber=110 
  • trunk/src/tmcsim/cadsimulator/managers/TrafficModelManager.java

    r277 r345  
    124124            props = loadProperties(propertiesFile); 
    125125            jsonPath = props.getProperty(PROPERTIES.JSON_PATH.name); 
    126             logger.logp(Level.INFO, "Traffic Managr", "Constructor",  
    127                     "Highway network json output: " + jsonPath); 
     126            //logger.logp(Level.INFO, "Traffic Manager", "Constructor",  
     127            //        "Highway network json output: " + jsonPath); 
    128128            // Initialize the highway model 
    129129            incidents = new HashMap<String, List<TrafficEvent>>(); 
     
    422422                 // Write the highway network status to the Console 
    423423                 System.out.println(highways.toString()); 
    424                 // Output the highway model  
    425                 String geojson = highways.toJson(); 
    426                 //System.out.println(geojson); // diagnostic 
    427                 PrintWriter out; 
    428                 try 
    429                 { 
    430                     out = new PrintWriter("highways.json"); 
    431                     out.print(geojson); 
    432                     out.close(); 
    433                 } 
    434                 catch (FileNotFoundException ex) 
    435                 { 
    436                     Logger.getLogger(GoogleMapAnimator.class.getName()).log(Level.SEVERE, null, ex); 
    437                 } 
    438                 // Wait for Google Map to process the data we just sent 
    439                 try 
    440                 { 
    441                     Thread.sleep(5000); 
     424                // Pause the thread 
     425                try 
     426                { 
     427                    Thread.sleep(10000); 
    442428                } 
    443429                catch (InterruptedException ie) 
     
    478464                try 
    479465                { 
    480                     Thread.sleep(30000); 
     466                    Thread.sleep(10000); 
    481467                } 
    482468                catch (InterruptedException ie) 
  • trunk/src/tmcsim/utilities/BuildHighwayFile.java

    r338 r345  
    281281     * in loop file. 
    282282     */ 
    283     private void showLeftoverVDS() 
     283    public void showLeftoverVDS() 
    284284    { 
    285285        Set<String> vdsItems = vdsDict.keySet(); // get all the VDS ids 
     
    303303        app.createLanelookup(); 
    304304        app.createHighwayFile(); 
    305         app.showLeftoverVDS(); 
    306305        System.out.println("Build complete, output file: "+highwayFile); 
    307306    } 
Note: See TracChangeset for help on using the changeset viewer.