Changeset 345 in tmcsimulator for trunk/src/tmcsim/cadsimulator/managers/TrafficModelManager.java
- Timestamp:
- 03/24/2019 09:48:29 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/cadsimulator/managers/TrafficModelManager.java
r277 r345 124 124 props = loadProperties(propertiesFile); 125 125 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); 128 128 // Initialize the highway model 129 129 incidents = new HashMap<String, List<TrafficEvent>>(); … … 422 422 // Write the highway network status to the Console 423 423 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); 442 428 } 443 429 catch (InterruptedException ie) … … 478 464 try 479 465 { 480 Thread.sleep( 30000);466 Thread.sleep(10000); 481 467 } 482 468 catch (InterruptedException ie)
Note: See TracChangeset
for help on using the changeset viewer.
