Changes between Version 7 and Version 8 of DevSimStartup


Ignore:
Timestamp:
09/02/2022 03:45:12 PM (4 years ago)
Author:
jdalbey
Comment:

Update for current procedure as of 2022.9.1

Legend:

Unmodified
Added
Removed
Modified
  • DevSimStartup

    v7 v8  
    11== HOWTO TMCSim Startup within !NetBeans == 
    22===  === 
    3 Connect your development machine to the ATL local network. 
     3If you haven't yet done so, checkout our source code repository using this  [https://tinyurl.com/y4579yw7 command]. 
    44 
    5 Start the FEPSim (on your local machine).  [See [wiki:FEPSimulatorInstallation#RunningFEPSimonyourworkstationorlaptop Instructions]]  
     5Start !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". 
    66 
    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.) 
     7Select "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. 
    88 
    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. 
     9Click on any file in the Projects pane to re-enable the "Run" button.  Choose "Sim Mgr" from the Project Configuration drop down. 
    1010 
    11 Click anywhere in the Projects pane to enable the "Run" button.  Choose "Sim Mgr" from the configuration drop down. 
     11Click "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. 
    1212 
    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. 
     13If desired, click "Load Script".  Select one of the available XML script files (for example, "practice_script_2016.xml"). 
    1814 
    1915(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). 
    2216 
    2317Click the "Start" button in the Simulator GUI. Simulator status should say "Running" (in green font). 
     
    2519The clock in the Simulation Manager and CADServer will start incrementing. 
    2620 
    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. 
     21When 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 
     23Open a terminal window and change directory to the `webapps` directory.  Start the webserver: 
     24 
     25 * (Linux)    `python -m CGIHTTPServer 8080 &` 
     26 
     27Start Firefox and in the address bar enter this URL: `http://localhost:8080/cptms/` 
     28 
     29Observe a colorful Google Map appear with traffic flow indicators in green, yellow, and red. 
    2830 
    2931Observe the simulator running incidents.