- Timestamp:
- 03/24/2019 09:48:29 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
paramics_communicator.log (modified) (1 diff)
-
paramics_status.xml (modified) (1 diff)
-
src/atmsdriver/model/Highways.java (modified) (2 diffs)
-
src/tmcsim/application.properties (modified) (1 diff)
-
src/tmcsim/cadsimulator/managers/TrafficModelManager.java (modified) (3 diffs)
-
src/tmcsim/utilities/BuildHighwayFile.java (modified) (2 diffs)
-
test/tmcsim/cadsimulator/CADSimulatorConsoleTest.java (modified) (3 diffs)
-
test/tmcsim/utilities/BuildHighwayFileTest.java (modified) (1 diff)
-
webapps/highway_status.json (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/paramics_communicator.log
r261 r345 3 3 <log> 4 4 <record> 5 <date>201 7-11-06T14:55:23</date>6 <millis>15 10008923085</millis>5 <date>2019-03-24T11:14:51</date> 6 <millis>1553451291453</millis> 7 7 <sequence>1</sequence> 8 8 <logger>tmcsim.parmicsLog</logger> -
trunk/paramics_status.xml
r340 r345 1 <Paramics>2 <Network_Status>LOADING</Network_Status>3 <Network_ID>1</Network_ID>4 </Paramics> -
trunk/src/atmsdriver/model/Highways.java
r343 r345 181 181 182 182 // postmiles increase from s to n and w to e 183 // if the direction is south or west183 // handle increasing postmile directinons (north or east) 184 184 if (direction.equals(Station.DIRECTION.NORTH) || direction.equals(Station.DIRECTION.EAST)) 185 185 { … … 201 201 } 202 202 } 203 } // if the direction is north or east 203 } 204 // handle decreasing postmile directions (south or west) 204 205 else 205 206 { -
trunk/src/tmcsim/application.properties
r343 r345 1 #S at, 23 Mar 2019 19:09:36-07001 #Sun, 24 Mar 2019 11:13:40 -0700 2 2 3 Application.revision=34 23 Application.revision=344 4 4 5 Application.buildnumber=1 085 Application.buildnumber=110 -
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) -
trunk/src/tmcsim/utilities/BuildHighwayFile.java
r338 r345 281 281 * in loop file. 282 282 */ 283 p rivatevoid showLeftoverVDS()283 public void showLeftoverVDS() 284 284 { 285 285 Set<String> vdsItems = vdsDict.keySet(); // get all the VDS ids … … 303 303 app.createLanelookup(); 304 304 app.createHighwayFile(); 305 app.showLeftoverVDS();306 305 System.out.println("Build complete, output file: "+highwayFile); 307 306 } -
trunk/test/tmcsim/cadsimulator/CADSimulatorConsoleTest.java
r228 r345 75 75 fullExpect = fullExpect.replaceAll("\n", ","); 76 76 // System.out.println(fullExpect); 77 //System.out.println(result.substring(result.length() - fullExpect.length(), result.length()));77 System.out.println(result.substring(result.length() - fullExpect.length(), result.length())); 78 78 // String diff = StringUtils.difference(fullExpect, result); 79 79 boolean match = result.endsWith(fullExpect); … … 276 276 +"Events_File = config/vds_data/atmsBatchEvents.txt\n" 277 277 +"FEPSim_IP_addr = localhost\n" 278 +"Output_Destination = Console\n"; 278 +"Output_Destination = Console\n" 279 +"Json_Path = /tmp/highway_status.json\n"; 279 280 static final String paramicsData = "ParamicsCommHost = 127.0.0.1\n" 280 281 + "ParamicsCommPort = 4450\n" … … 303 304 cf.delete(); 304 305 writedata("config.txt", configData); 306 File tf = new File ("tconfig.txt"); 307 tf.delete(); 305 308 writedata("tconfig.txt", trafficMgrData); 306 309 writedata("pconfig.txt", paramicsData); -
trunk/test/tmcsim/utilities/BuildHighwayFileTest.java
r338 r345 29 29 } 30 30 31 public void testCreateVDSlookup() 31 /** Just a smoke test to see if it creates the output file */ 32 public void testCheckFileCreated() 32 33 { 33 34 System.out.println("createVDSlookup"); 34 BuildHighwayFile instance = new BuildHighwayFile(); 35 instance.createLanelookup(); 35 BuildHighwayFile app = new BuildHighwayFile(); 36 app.createLDSdict(); 37 app.createVDSdict(); 38 app.createLanelookup(); 39 app.createHighwayFile(); 40 app.showLeftoverVDS(); 41 36 42 String filename = BuildHighwayFile.dirpath +BuildHighwayFile.loopFileName; 37 43 File f = new File(filename); -
trunk/webapps/highway_status.json
r340 r345 2358 2358 }, 2359 2359 "properties": 2360 {"street": "MACARTHU1", "color": " red", "perpx": "-0.710326", "perpy": "0.703873"}2360 {"street": "MACARTHU1", "color": "lime", "perpx": "-0.710326", "perpy": "0.703873"} 2361 2361 }, 2362 2362 { … … 2369 2369 }, 2370 2370 "properties": 2371 {"street": "MACARTHU1", "color": " red", "perpx": "0.740557", "perpy": "-0.671994"}2371 {"street": "MACARTHU1", "color": "lime", "perpx": "0.740557", "perpy": "-0.671994"} 2372 2372 }, 2373 2373 { … … 2380 2380 }, 2381 2381 "properties": 2382 {"street": "MACARTHU2", "color": " yellow", "perpx": "-0.710326", "perpy": "0.703873"}2382 {"street": "MACARTHU2", "color": "lime", "perpx": "-0.710326", "perpy": "0.703873"} 2383 2383 }, 2384 2384 { … … 2391 2391 }, 2392 2392 "properties": 2393 {"street": "MACARTHU2", "color": " yellow", "perpx": "0", "perpy": "0"}2393 {"street": "MACARTHU2", "color": "lime", "perpx": "0", "perpy": "0"} 2394 2394 }, 2395 2395 {
Note: See TracChangeset
for help on using the changeset viewer.
