HOWTO TMCSim Startup within NetBeans
If you haven't yet done so, checkout our source code repository using this command.
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". (Note: NetBeans has a built-in subversion client for managing the source code (see Onboarding), but the bin, config, and other folders at the same level as src are not part of the NetBeans "project" so must be managed separately by Subversion's command line client).
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. (Note: The CAD Server must be running before starting the Simulation Manager or CAD Clients).
Click on any file in the Projects pane to re-enable the "Run" button. Choose "Sim Mgr" from the Project Configuration drop down.
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.
If desired, click "Load Script". Select one of the available XML script files (for example, "practice_script_2016.xml").
(Optional: Start a CAD Client.)
Click the "Start" button in the Simulator GUI. Simulator status should say "Running" (in green font).
The clock in the Simulation Manager and CADServer will start incrementing.
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.
Open a terminal window and change directory to the webapps directory. Start the webserver:
- (Linux) python -m CGIHTTPServer 8080 &
Start Firefox and in the address bar enter this URL: http://localhost:8080/cptms/
Observe a colorful Google Map appear with traffic flow indicators in green, yellow, and red.
Observe the simulator running incidents.
To terminate, close the applications from within NetBeans or with window close button.
Unified Logging Service
Open a terminal window in the trunk directory.
Start the unified logging service: python webapps/unifiedlogger.zip
The terminal output should begin with:
Unified Logging Service v___ starting from <path to trunk>
Assuming you have started the web server as shown above, Start Firefox and in the address bar enter this URL: http://localhost:8080/unifiedlogmonitor.html
When the page loads it will display a four-column list of log messages.
