Changes between Version 5 and Version 6 of HOWTO-DeploySimulator
- Timestamp:
- 04/03/2019 02:06:00 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HOWTO-DeploySimulator
v5 v6 12 12 While connected to the TMC lab LAN open a network connection to STORAGE. (Note: it accepts anonymous connection without password. If this fails, as a workaround just transfer the files using !SneakerNet - a USB Flash Drive.) 13 13 14 Copy desired Jar files from trunk/deploy folder to TMC Simulator Test[[BR]]14 Copy desired Jar files from `trunk/deploy` folder to STORAGE. 15 15 16 * CADserver.jar - Always needed 17 * !SimManager.jar - Runs the simulation 18 * CADClient.jar - Student workstation client 19 * !ClockClient.jar - Sim clock view for instructors 20 * !TrafficEventsAnimator.jar - For traffic event author script testing 16 * `CADserver_rNNN.jar` - Server, Always needed 17 * `SimManager_rNNN.jar` - Runs the simulation 18 * `CADClient_rNNN.jar` - Student workstation client 19 * `ClockClient.jar` - Sim clock view for instructors 21 20 22 Login to Windows Development PC21 Login to Windows on Development workstation. 23 22 24 23 Open File Explorer to STORAGE. 25 24 26 Copy Jar files to C:\TMCSim_Test folder. Copy and changed config files, eventfiles.25 Copy Jar files to `C:\TMC Simulator 2019` folder. Copy any changed config files, event data files. Optionally, delete any old Jar files. 27 26 28 Double-click on a Jar file to execute it, or open a command prompt to get a console where error messages are displayed and issue29 30 {{{31 java -jar CADserver.jar32 }}}33 27 == Deploy CPTMS web app == 34 Make sure Python is installed. Create !WebServer.bat in C:\TMCSim_Test folder.28 Make sure Python is installed. Create `WebServer.bat` in `C:\TMC Simulator 2019` folder (if not already present). 35 29 36 30 {{{ 37 31 cd webapps & C:\Python27\python -m CGIHTTPServer 80 38 32 }}} 39 If necessary create webapps subfolder. Copy these files to the webapps folder.33 Copy the `webapps `folder from repository trunk to Dev machine folder `C:\TMC Simulator 2019`. 40 34 41 {{{ 42 cctv_locations_D12.json 43 cmsStatusD12.json 44 cptms_map.html 45 highways.json 46 highways_startup.json 47 messagefile.txt 48 scoreboard.ttf 49 }}} 50 If necessary create images subfolder in webapps. Copy the cctv images into it. 35 == Starting the simulation (dev/test environment) == 36 Launch `WebServer.bat` by double-clicking. Observe a terminal window open and display webserver status messages. 51 37 52 Also, create cgi-bin folder and put savemessage.py there. 38 Double-click on a Jar file to execute it: 39 40 `CADserver_rNNN.jar` 41 42 The server GUI should appear displaying time 0:00:00. 43 44 Start a web browser (ideally on a separate workstation). In the address bar enter "`http://cptms.tmcsim/cptms.html`". A google map should appear with green dots. 45 46 `SimManager_rNNN.jar` 47 48 The Simulation Manager GUI should appear. Click "Load Script" and select the desired script from the File Chooser. 49 50 (Alternately, open a command prompt to get a console where error messages are displayed and run the Jar files from the command line.) 51 52 Optionally, start any CADClients, ideally on a different workstation. 53 54 Click "Start" button in Simulation Manager GUI. Observe the clock begin counting every second. In CADServer GUI, observe the timer running. Click on the "Traffic" tab to view the queue of traffic events. As events are processed, there will be a ten second delay and then the affected dots will change color in the CPTMS map. 55 56 Monitor simulation progress. The event queue should be processed according to the simulation time. The dot colors should be changed as specified in the traffic event data.
