Changeset 653 in tmcsimulator
- Timestamp:
- 09/08/2022 02:22:57 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
IDE_metadata/NetBeans/TMCSim/nbproject/project.properties (modified) (2 diffs)
-
test/tmcsim/cadsimulator/CADSimulatorConsoleTest.java (modified) (5 diffs)
-
test/tmcsim/cadsimulator/SystemConsoleTest.java (modified) (1 diff)
-
test/tmcsim/cadsimulator/SystemTest.java (modified) (1 diff)
-
test/tmcsim/highwaymodel/HighwaysTest.java (modified) (10 diffs)
-
test/tmcsim/highwaymodel/LoadHighwaysTest.java (modified) (4 diffs)
-
webapps/dynamicdata/CADcomments.log (modified) (1 diff)
-
webapps/dynamicdata/unifiedlog.csv (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE_metadata/NetBeans/TMCSim/nbproject/project.properties
r650 r653 1 auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml 1 2 #Fri Oct 06 15:14:08 PDT 2017 2 3 excludes= … … 5 6 file.reference.trunk-webapps=../../../webapps 6 7 file.reference.xercesImpl.jar=../../../lib/xercesImpl.jar 8 jar.archive.disabled=${jnlp.enabled} 9 jar.index=${jnlp.enabled} 7 10 javac.deprecation=false 8 11 file.reference.jaco-mp3-player-0.9.3.jar=../../../lib/jaco-mp3-player-0.9.3.jar 9 12 build.test.results.dir=${build.dir}/test/results 10 13 javac.external.vm=false 14 jnlp.codebase.type=no.codebase 15 jnlp.descriptor=application 16 jnlp.enabled=false 17 jnlp.mixed.code=default 18 jnlp.offline-allowed=false 19 jnlp.signed=false 20 jnlp.signing= 21 jnlp.signing.alias= 22 jnlp.signing.keystore= 23 # Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found. 24 manifest.custom.application.library.allowable.codebase= 25 # Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts. 26 manifest.custom.caller.allowable.codebase= 27 # Optional override of default Codebase manifest attribute, use to prevent RIAs from being repurposed 28 manifest.custom.codebase= 29 # Optional override of default Permissions manifest attribute (supported values: sandbox, all-permissions) 30 manifest.custom.permissions= 11 31 run.classpath=\ 12 32 ${javac.classpath}:\ -
trunk/test/tmcsim/cadsimulator/CADSimulatorConsoleTest.java
r558 r653 9 9 import java.util.logging.Logger; 10 10 import junit.framework.TestCase; 11 import org.apache.commons.lang.StringUtils; 11 12 import static org.mockito.Mockito.mock; 12 13 import tmcsim.cadsimulator.viewer.CADConsoleViewer; … … 74 75 { 75 76 String result = sw.toString().trim(); 77 System.out.println(""+result); 76 78 result = result.replaceAll("\n", ","); 77 79 String fullExpect = expect.trim(); … … 221 223 + "Network Loaded : None\n" 222 224 + "-- Info Messages --\n" 223 + ". = Console Info Message.\n" 225 + ". = Console Info Message." 226 + "tmcsim.cadsimulator.Coordinator.copyXMLfile = Loaded script copied to webapps/dynamicdata/incident_script.xml\n" 224 227 + "-- Error Messages --\n" 225 228 + "Someclass.Somemethod = Sample error message.\n"; … … 233 236 + "Network Loaded : None\n" 234 237 + "-- Info Messages --\n" 235 + ". = Console Info Message.\n" 238 + ". = Console Info Message." 239 + "tmcsim.cadsimulator.Coordinator.copyXMLfile = Loaded script copied to webapps/dynamicdata/incident_script.xml\n" 236 240 + "-- Error Messages --\n" 237 241 + "Someclass.Somemethod = Sample error message.\n"; … … 240 244 String autoloadScriptname = kScenarioFolder+"/one-incident.xml"; 241 245 app.theCoordinator.loadScriptFile(new File(autoloadScriptname)); 242 pause( 500);246 pause(2000); 243 247 verify("Status should be 'ready'", expected8); 244 248 // startSimulation to put status at Running -
trunk/test/tmcsim/cadsimulator/SystemConsoleTest.java
r558 r653 197 197 { 198 198 } 199 simMgrWindow.getButton(" Start").click();199 simMgrWindow.getButton("Resume").click(); 200 200 try 201 201 { -
trunk/test/tmcsim/cadsimulator/SystemTest.java
r558 r653 200 200 { 201 201 } 202 simMgrWindow.getButton(" Start").click();202 simMgrWindow.getButton("Resume").click(); 203 203 try 204 204 { -
trunk/test/tmcsim/highwaymodel/HighwaysTest.java
r422 r653 31 31 PrintWriter writer = null; 32 32 try { 33 writer = new PrintWriter(new FileWriter(" test/atmsdriver/postmiles1.txt"));33 writer = new PrintWriter(new FileWriter("/tmp/postmiles1.txt")); 34 34 writer.println("5 S 0.9,33.408425,-117.599923,CALAFIA,0,0"); 35 35 writer.println("5 N 1.24,33.413051,-117.601964,MAGDALENA,0,0"); … … 37 37 writer.close(); 38 38 39 writer = new PrintWriter(new FileWriter(" test/atmsdriver/postmiles2.txt"));39 writer = new PrintWriter(new FileWriter("/tmp/postmiles2.txt")); 40 40 writer.println("5 N 5.89,33.459637,-117.657305,ESTRELLA2,0,0"); 41 41 writer.println("5 S 6.47,33.464281,-117.665631,SACRAMENTO,-0.56275,-0.826627"); … … 47 47 writer.close(); 48 48 49 writer = new PrintWriter(new FileWriter(" test/atmsdriver/postmiles3.txt"));49 writer = new PrintWriter(new FileWriter("/tmp/postmiles3.txt")); 50 50 writer.println("73 N 23.9,33.643656,-117.859875,BISON 2,0.976131,0.217185"); 51 51 writer.println("55 S 6.88,33.697495,-117.862677,MACARTHU1,-0.710326,0.703873"); … … 63 63 protected void tearDown() throws Exception { 64 64 super.tearDown(); 65 Path path = FileSystems.getDefault().getPath(" test/atmsdriver", "postmiles1.txt");65 Path path = FileSystems.getDefault().getPath("/tmp/", "postmiles1.txt"); 66 66 Files.delete(path); 67 path = FileSystems.getDefault().getPath(" test/atmsdriver", "postmiles2.txt");67 path = FileSystems.getDefault().getPath("/tmp/", "postmiles2.txt"); 68 68 Files.delete(path); 69 path = FileSystems.getDefault().getPath(" test/atmsdriver", "postmiles3.txt");69 path = FileSystems.getDefault().getPath("/tmp/", "postmiles3.txt"); 70 70 Files.delete(path); 71 71 } … … 74 74 System.out.println("test FindStation()"); 75 75 Highways highways = new Highways( 76 " test/atmsdriver/postmiles1.txt");76 "/tmp/postmiles1.txt"); 77 77 assertTrue(null != highways.findStation(5, DIRECTION.SOUTH, 0.9)); 78 78 assertTrue(null != highways.findStation(5, DIRECTION.SOUTH, 1.49)); … … 86 86 System.out.println("toString"); 87 87 Highways highways = new Highways( 88 " test/atmsdriver/postmiles2.txt");88 "/tmp/postmiles2.txt"); 89 89 highways.getHighwayByRouteNumber(5).stations.get(0).loops.get(0).vol = 1; 90 90 String result = highways.toString(); … … 108 108 System.out.println("toJson"); 109 109 Highways highways = new Highways( 110 " test/atmsdriver/postmiles1.txt");110 "/tmp/postmiles1.txt"); 111 111 String result = highways.toJson(); 112 112 System.out.println(result); … … 130 130 System.out.println("stationSort"); 131 131 Highways highways = new Highways( 132 " test/atmsdriver/postmiles3.txt");132 "/tmp/postmiles3.txt"); 133 133 String result = highways.toJson(); 134 134 JSONParser parser = new JSONParser(); … … 155 155 System.out.println("routeSort"); 156 156 Highways highways = new Highways( 157 " test/atmsdriver/postmiles3.txt");157 "/tmp/postmiles3.txt"); 158 158 String result = highways.toJson(); 159 159 JSONParser parser = new JSONParser(); … … 180 180 System.out.println("apply color"); 181 181 Highways highways = new Highways( 182 " test/atmsdriver/postmiles1.txt");182 "/tmp/postmiles1.txt"); 183 183 highways.applyColorToHighwayStretch(5, Station.DIRECTION.SOUTH, 0.9, 2.0, 184 184 LoopDetector.DOTCOLOR.RED); -
trunk/test/tmcsim/highwaymodel/LoadHighwaysTest.java
r422 r653 28 28 PrintWriter writer = null; 29 29 try { 30 writer = new PrintWriter(new FileWriter(" test/atmsdriver/postmiles1.txt"));30 writer = new PrintWriter(new FileWriter("/tmp/postmiles1.txt")); 31 31 writer.println("5 S 0.9,33.408425,-117.599923,CALAFIA,0,0"); 32 32 writer.println("5 N 1.24,33.413051,-117.601964,MAGDALENA,0,0"); 33 33 writer.println("5 S 1.49,33.416348,-117.603827,EL CAMINO REAL,0,0"); 34 34 writer.close(); 35 writer = new PrintWriter(new FileWriter(" test/atmsdriver/postmiles3.txt"));35 writer = new PrintWriter(new FileWriter("/tmp/postmiles3.txt")); 36 36 writer.println("73 N 23.9,33.643656,-117.859875,BISON 2,0.976131,0.217185"); 37 37 writer.println("55 S 6.88,33.697495,-117.862677,MACARTHU1,-0.710326,0.703873"); … … 49 49 protected void tearDown() throws Exception { 50 50 super.tearDown(); 51 Path path = FileSystems.getDefault().getPath(" test/atmsdriver", "postmiles1.txt");51 Path path = FileSystems.getDefault().getPath("/tmp", "postmiles1.txt"); 52 52 Files.delete(path); 53 path = FileSystems.getDefault().getPath(" test/atmsdriver", "postmiles3.txt");53 path = FileSystems.getDefault().getPath("/tmp", "postmiles3.txt"); 54 54 Files.delete(path); 55 55 } … … 61 61 System.out.println("testLoadHighways"); 62 62 Highways highways = new Highways( 63 " test/atmsdriver/postmiles1.txt");63 "/tmp/postmiles1.txt"); 64 64 65 65 // Test for correct number of highways … … 97 97 System.out.println("testLoadHighways2"); 98 98 Highways highways = new Highways( 99 " test/atmsdriver/postmiles3.txt");99 "/tmp/postmiles3.txt"); 100 100 101 101 // Test for correct number of highways -
trunk/webapps/dynamicdata/CADcomments.log
r650 r653 1 1 CAD Log, Simulation Paused. 2 CAD Log, Simulation Paused. -
trunk/webapps/dynamicdata/unifiedlog.csv
r650 r653 1 00:07:26, CMS Activated,N SR-55 5.38 Baker Street, 'DRIVE SAFE:::::' 2 00:07:26, CMS Activated,N I-405 15.18 MAGNOLIA ST, 'SLOW FOR THE::CONE ZONE:ROAD WORK:AHEAD:' 3 00:07:26, CMS Activated,S SR-55 8.64 WARNER AVE, 'ACCIDENT AHEAD:::::' 4 00:07:26, CMS Activated,S I-405 4.06 JEFFREY, 'SLOW TRAFFIC:AHEAD::::' 5 00:07:26, HAR Activated,WPMW407 1620 AM, 'NOW IS THE TIME FOR ALL GOOD MEN TO COME TO THE AID OF THEIR COUNTRY ASK NOT WHAT YOUR COUNTRY CAN DO FOR YOU ASK WHAT YOU CAN DO FOR YOUR COUNTRY.' 6 00:07:26, HAR Activated,KNNN868 1620 AM, 'SAMPLE HAR MESSAGE' 7 00:07:26, CAD Log, Simulation Started at 2 Sep 2022 15:34:26 with incidents 100 187 188 189 190 191 8 00:07:26, CAD Log, Simulation Paused. 9 00:07:26, Activity Log,Ha Khanh Duy,001 Per 32-1 NB rte 405 blocked 10 00:07:26, Activity Log,Gross Angelo,001 HCC NOTIFIED 11 00:07:26, Activity Log,Gross Angelo,001 32-1 Vehicle Disabled S 55@ 405 1308 hours 12 00:07:26, Activity Log,Smith Bob,021 10-98 Assignment Completed 75-1 13 00:07:26, Activity Log,Jones Mary,021 10-98 Let's get pizza. 75-1 14 00:07:26, Activity Log,Tsu Lao,021 10-97 Tomatoes everywhere. 75-1 15 00:07:26, Activity Log,Barry Dave,021 10-97 Tribbles everywhere. 75-1 16 00:07:26, Activity Log,Jones Mary,021 10-97 Doritos everywhere. 75-1 17 00:07:26, Activity Log,Bailey Mary,001 Incident Created 18 00:07:26, Activity Log,Hockaday Neil,002 Incident Created 19 00:07:26, Activity Log,Quan Ally,002 Incident Created 20 00:07:26, Activity Log,Buck Joe,002 Incident Created 21 00:07:26, HAR Updated, KNNN868 1620 AM, 'SAMPLE HAR MESSAGE SAMPLE HAR MESSAGE SAMPLE HAR MESSAGE SAMPLE HAR MESSAGE' 1 00:00:01, CMS Activated,N SR-55 5.38 Baker Street, 'DRIVE SAFE:::::' 2 00:00:01, CMS Activated,N I-405 15.18 MAGNOLIA ST, 'SLOW FOR THE::CONE ZONE:ROAD WORK:AHEAD:' 3 00:00:01, CMS Activated,S SR-55 8.64 WARNER AVE, 'ACCIDENT AHEAD:::::' 4 00:00:01, CMS Activated,S I-405 4.06 JEFFREY, 'SLOW TRAFFIC:AHEAD::::' 5 00:00:01, HAR Activated,WPMW407 1620 AM, 'NOW IS THE TIME FOR ALL GOOD MEN TO COME TO THE AID OF THEIR COUNTRY ASK NOT WHAT YOUR COUNTRY CAN DO FOR YOU ASK WHAT YOU CAN DO FOR YOUR COUNTRY.' 6 00:00:01, HAR Activated,KNNN868 1620 AM, 'SAMPLE HAR MESSAGE SAMPLE HAR MESSAGE SAMPLE HAR MESSAGE SAMPLE HAR MESSAGE' 7 00:00:01, CAD Log, Simulation Paused. 8 00:00:01, Activity Log,Ha Khanh Duy,001 Per 32-1 NB rte 405 blocked 9 00:00:01, Activity Log,Gross Angelo,001 HCC NOTIFIED 10 00:00:01, Activity Log,Gross Angelo,001 32-1 Vehicle Disabled S 55@ 405 1308 hours 11 00:00:01, Activity Log,Smith Bob,021 10-98 Assignment Completed 75-1 12 00:00:01, Activity Log,Jones Mary,021 10-98 Let's get pizza. 75-1 13 00:00:01, Activity Log,Tsu Lao,021 10-97 Tomatoes everywhere. 75-1 14 00:00:01, Activity Log,Barry Dave,021 10-97 Tribbles everywhere. 75-1 15 00:00:01, Activity Log,Jones Mary,021 10-97 Doritos everywhere. 75-1 16 00:00:01, Activity Log,Bailey Mary,001 Incident Created 17 00:00:01, Activity Log,Hockaday Neil,002 Incident Created 18 00:00:01, Activity Log,Quan Ally,002 Incident Created 19 00:00:01, Activity Log,Buck Joe,002 Incident Created
Note: See TracChangeset
for help on using the changeset viewer.
