Changeset 258 in tmcsimulator
- Timestamp:
- 02/11/2019 03:36:49 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
-
atmsdriver/model/Highways.java (modified) (1 diff)
-
tmcsim/application.properties (modified) (1 diff)
-
tmcsim/cadsimulator/managers/TrafficModelManager.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/model/Highways.java
r248 r258 347 347 348 348 // Print the number of bytes the highways data message contains 349 System.out.println(" BYTES: " + this.toCondensedFormat(false).toCharArray().length + 1);349 System.out.println("Highways sending " + this.toCondensedFormat(false).toCharArray().length + 1 + "bytes to FEPSIM."); 350 350 351 351 // Write the highways data over the socket -
trunk/src/tmcsim/application.properties
r257 r258 1 #Mon, 11 Feb 2019 1 1:45:31-08001 #Mon, 11 Feb 2019 16:19:24 -0800 2 2 3 Application.revision=25 53 Application.revision=257 4 4 5 Application.buildnumber=9 25 Application.buildnumber=94 -
trunk/src/tmcsim/cadsimulator/managers/TrafficModelManager.java
r248 r258 63 63 FEPSIM_IP_ADDR("FEPSim_IP_addr"), 64 64 EVENTS_FILE("Events_File"), 65 OUTPUT_DEST("Output_Destination"); 65 OUTPUT_DEST("Output_Destination"), 66 JSON_PATH("Json_Path"); 66 67 67 68 public String name; … … 102 103 */ 103 104 private String currentClock = ""; 104 105 106 /** 107 * Path for writing highway data to Json file. 108 */ 109 private String jsonPath; 110 105 111 /** 106 112 * Constructor. Loads the Properties file and initializes the … … 117 123 { 118 124 props = loadProperties(propertiesFile); 125 jsonPath = props.getProperty(PROPERTIES.JSON_PATH.name); 126 logger.logp(Level.INFO, "Traffic Managr", "Constructor", 127 "Highway network json output: " + jsonPath); 119 128 // Initialize the highway model 120 129 incidents = new HashMap<String, List<TrafficEvent>>(); … … 455 464 { 456 465 // currently writes to local file 457 out = new PrintWriter( "highways.json");466 out = new PrintWriter(jsonPath); 458 467 out.print(geojson); 459 468 out.close();
Note: See TracChangeset
for help on using the changeset viewer.
