Changes between Version 9 and Version 10 of HOWTO-DeploySimulator
- Timestamp:
- 04/18/2019 01:22:29 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HOWTO-DeploySimulator
v9 v10 1 1 = How to deploy and run Simulator (dev/test environment) = 2 == Deploy ment==2 == Deploy Simulator == 3 3 On a development machine checkout the TMC Simulator trunk from the SVN repo. 4 4 … … 13 13 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.) 14 14 15 Copy desired Jar files from `trunk/deploy` folder to STORAGE. 16 17 * `CADserver_rNNN.jar` - Server, Always needed 18 * `SimManager_rNNN.jar` - Runs the simulation 19 * `CADClient_rNNN.jar` - Student workstation client 20 * `ClockClient.jar` - Sim clock view for instructors 15 Copy `trunk/deploy` folder to STORAGE. If needed, copy any changed config files or data files. 21 16 22 17 Login to Windows on Development workstation. … … 24 19 Open File Explorer to STORAGE. 25 20 26 Copy Jar files to `C:\TMC Simulator 2019` folder. Copy any changed config files, event data files. Optionally, delete any old Jar files.21 Copy (replace) deploy folder to `C:\TMC Simulator 2019` folder. 27 22 28 23 == Deploy web applications == 29 24 Copy the `webapps `folder from repository trunk to Dev machine folder `C:\TMC Simulator 2019`. 30 25 31 Make sure Python is installed. Create `WebServer.bat` in `C:\TMC Simulator 2019` folder (if not already present).26 Make sure Python 2.7 is installed. 32 27 33 {{{34 cd webapps & C:\Python27\python -m CGIHTTPServer 8035 }}}36 28 == Starting the simulation == 37 Double-click on a Jar file to execute it: 29 Use File Explorer to open `bin `folder. 38 30 39 `CADserver_rNNN.jar` 31 Double-click on `renamejars.bat`. 32 33 Decide which script you want to run ("full" or "practice"). Double-click on the correspondingly named `systemstart` .bat file. 34 35 Observe a terminal window open and display webserver status messages. 40 36 41 37 The server GUI should appear displaying time 0:00:00. 42 38 43 `SimManager_rNNN.jar` 44 45 The Simulation Manager GUI should appear. Click "Load Script" and select the desired script from the File Chooser. 46 47 (Alternately, open a command prompt to get a console where error messages are displayed and run the Jar files from the command line.) 39 The Simulation Manager GUI should appear. 48 40 49 41 Optionally, start any CADClients, ideally on a different workstation. 50 42 51 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 .43 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 (see below). 52 44 53 45 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. 54 46 55 47 ==== Start Web Apps ==== 56 Launch `WebServer.bat` by double-clicking. Observe a terminal window open and display webserver status messages.48 Start a web browser (ideally on a separate workstation). 57 49 58 Start a web browser (ideally on a separate workstation).50 Start CPTMS: In the address bar enter "`http://cptms.tmcsim/cptms.html`". A google map should appear with green dots. 59 51 60 Start CPTTMS: In the address bar enter "`http://cptms.tmcsim/cptms.html`". A google map should appear with green dots. 61 62 Start EInotebook: In the address bar enter "`http://cptms.tmcsim/einotebook`". The four tabs of the Electronic Instructor Notebook should appear, with the clock displaying the simulation time. 52 Start EInotebook: In the address bar enter "`http://cptms.tmcsim/einotebook`". The four tabs of the Electronic Instructor Notebook should appear, with the clock displaying the simulation time. 63 53 64 54 Optionally, open the CMS/HAR monitor in a web browser: "`http://cptms.tmcsim/cms_monitor.html`"
