Changes between Version 5 and Version 6 of HOWTO-DeploySimulator


Ignore:
Timestamp:
04/03/2019 02:06:00 PM (7 years ago)
Author:
jdalbey
Comment:

Add sim startup directions

Legend:

Unmodified
Added
Removed
Modified
  • HOWTO-DeploySimulator

    v5 v6  
    1212While 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.) 
    1313 
    14 Copy desired Jar files from trunk/deploy folder to TMC Simulator Test[[BR]] 
     14Copy desired Jar files from `trunk/deploy` folder to STORAGE. 
    1515 
    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 
    2120 
    22 Login to Windows Development PC 
     21Login to Windows on Development workstation. 
    2322 
    2423Open File Explorer to STORAGE. 
    2524 
    26 Copy Jar files to C:\TMCSim_Test folder. Copy and changed config files, event files. 
     25Copy Jar files to `C:\TMC Simulator 2019` folder. Copy any changed config files, event data files.  Optionally, delete any old Jar files. 
    2726 
    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 issue 
    29  
    30 {{{ 
    31 java -jar CADserver.jar 
    32 }}} 
    3327== Deploy CPTMS web app == 
    34 Make sure Python is installed. Create !WebServer.bat in C:\TMCSim_Test folder. 
     28Make sure Python is installed. Create `WebServer.bat` in  `C:\TMC Simulator 2019` folder (if not already present). 
    3529 
    3630{{{ 
    3731cd webapps & C:\Python27\python -m CGIHTTPServer 80 
    3832}}} 
    39 If necessary create webapps subfolder.  Copy these files to the webapps folder. 
     33Copy the `webapps `folder from repository trunk to Dev machine folder `C:\TMC Simulator 2019`. 
    4034 
    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) == 
     36Launch `WebServer.bat` by double-clicking.  Observe a terminal window open and display webserver status messages. 
    5137 
    52 Also, create cgi-bin folder and put savemessage.py there. 
     38Double-click on a Jar file to execute it: 
     39 
     40`CADserver_rNNN.jar` 
     41 
     42The server GUI should appear displaying time 0:00:00. 
     43 
     44Start 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 
     48The 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 
     52Optionally, start any CADClients, ideally on a different workstation. 
     53 
     54Click "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 
     56Monitor 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.