| Version 8 (modified by jdalbey, 7 years ago) (diff) |
|---|
How to deploy and run Simulator (dev/test environment)
Deployment
On a development machine checkout the TMC Simulator trunk from the SVN repo.
Open the project in NetBeans.
Clean and Build.
Run Test Project and confirm any failed tests aren't system problems.
Run the build target: package-jars
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.)
Copy desired Jar files from trunk/deploy folder to STORAGE.
- CADserver_rNNN.jar - Server, Always needed
- SimManager_rNNN.jar - Runs the simulation
- CADClient_rNNN.jar - Student workstation client
- ClockClient.jar - Sim clock view for instructors
Login to Windows on Development workstation.
Open File Explorer to STORAGE.
Copy Jar files to C:\TMC Simulator 2019 folder. Copy any changed config files, event data files. Optionally, delete any old Jar files.
Deploy CPTMS web app
Copy the webapps folder from repository trunk to Dev machine folder C:\TMC Simulator 2019.
Make sure Python is installed. Create WebServer.bat in C:\TMC Simulator 2019 folder (if not already present).
cd webapps & C:\Python27\python -m CGIHTTPServer 80
Starting the simulation
Launch WebServer.bat by double-clicking. Observe a terminal window open and display webserver status messages.
Double-click on a Jar file to execute it:
CADserver_rNNN.jar
The server GUI should appear displaying time 0:00:00.
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.
SimManager_rNNN.jar
The Simulation Manager GUI should appear. Click "Load Script" and select the desired script from the File Chooser.
(Alternately, open a command prompt to get a console where error messages are displayed and run the Jar files from the command line.)
Optionally, start any CADClients, ideally on a different workstation.
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.
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.
Optionally, open the CMS/HAR monitor in a web browser: "http://cptms.tmcsim/cms_monitor.html"
