Changes between Version 7 and Version 8 of DevSimStartup
- Timestamp:
- 09/02/2022 03:45:12 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevSimStartup
v7 v8 1 1 == HOWTO TMCSim Startup within !NetBeans == 2 2 === === 3 Connect your development machine to the ATL local network.3 If you haven't yet done so, checkout our source code repository using this [https://tinyurl.com/y4579yw7 command]. 4 4 5 Start the FEPSim (on your local machine). [See [wiki:FEPSimulatorInstallation#RunningFEPSimonyourworkstationorlaptop Instructions]]5 Start !NetBeans v8.2. Select File > Open Project. In the file chooser dialog, navigate to the repository folder '`trunk/IDE_metadata/NetBeans/` and select "`TMCSim`". Click "Open Project". 6 6 7 In `traffic_model_config.properties` set `FEPSim_IP_addr = localhost` (so CAD Server knows FEPSim is running locally instead of on VM in Control room.) 7 Select "CAD Server" in Project Configuration dropdown menu. Click the "Run Project" button (or press F6). Wait a moment for CAD Server to start up and the GUI be displayed. The title bar should say "CAD Server" and revision number. 8 8 9 Open the TMCSim project in !NetBeans. "Run Project" with the default configuration to start the CAD Server. Wait for CAD Server to start up and the GUI be displayed. The title bar should say "CAD Server" and revision number.9 Click on any file in the Projects pane to re-enable the "Run" button. Choose "Sim Mgr" from the Project Configuration drop down. 10 10 11 Click anywhere in the Projects pane to enable the "Run" button. Choose "Sim Mgr" from the configuration drop down.11 Click "Run Project" again to start the Simulation Manager. Verify the Simulation Manager GUI displays the default initial values: time is 0:00:00, status is "Ready" (in red font) and the title bar indicates "`full_script_2016.xml`". The Incident Management panel should show the incident numbers from the script. 12 12 13 "Run Project" to start the Simulation Manager. Verify the Simulation Manager GUI displays correct initial values: Status is "No Script" and time is 0:00:00. 14 15 Click "Load Script". Select one of the available XML script files (for example, "practice_script_2016.xml"). 16 17 Simulator status should say "Ready" (in red font). The Incident Management panel should show the incident numbers from the script. 13 If desired, click "Load Script". Select one of the available XML script files (for example, "practice_script_2016.xml"). 18 14 19 15 (Optional: Start a CAD Client.) 20 21 Locate ATMSBatchDriver.java under tmcsim.client. Right-click and choose "Run File". The output window should display "Building network ..." and then after a few moments which highways were loaded. It should then display the number of events read from the batch events file and a GUI display of the current clock and the list of events in the queue. (This section is obsolete as of CAD Server !r257).22 16 23 17 Click the "Start" button in the Simulator GUI. Simulator status should say "Running" (in green font). … … 25 19 The clock in the Simulation Manager and CADServer will start incrementing. 26 20 27 When the next event time occurs the output window will show a message about which dots were effected. After 30 seconds the dots should change color on the ATMS client display in the training room. 21 When the next scheduled event time occurs, the Event History panel in the Sim Mgr will update. In the CAD Server, the "Traffic" tab shows the color code ('G','Y', or 'R') for highway segments on the CPTMS display. You should be able to hear simulated radio communications through your computer audio output jack. 22 23 Open a terminal window and change directory to the `webapps` directory. Start the webserver: 24 25 * (Linux) `python -m CGIHTTPServer 8080 &` 26 27 Start Firefox and in the address bar enter this URL: `http://localhost:8080/cptms/` 28 29 Observe a colorful Google Map appear with traffic flow indicators in green, yellow, and red. 28 30 29 31 Observe the simulator running incidents.
