| 37 | | When the CAD Server starts, the Traffic Model Manager and the Highways model are instantiated. The Traffic Model Manager creates a thread, the WriteToFEPThread, which creates a client socket connection with the FEP Simulator. The traffic conditions message is sent over this socket, to the FEP Simulator, on every 30 second interval. To do so, the WriteToFEPThread calls upon the Highways class' writeToFEP() method. |
| | 37 | When the CAD Server starts, the Traffic Model Manager and the Highways model are instantiated. The Traffic Model Manager spawns a thread, the WriteToFEPThread, which creates a client socket connection with the FEP Simulator. The traffic conditions message is sent over this socket, to the FEP Simulator, on every 30 second interval. To do so, the WriteToFEPThread calls upon the Highways class' writeToFEP() method. |
| 77 | | === Traffic Model to FEPSimulator === |
| | 77 | === Traffic Model to FEP Simulator === |
| | 78 | |
| | 79 | The Traffic Model communicates with the FEP Simulator by sending the traffic conditions message over a socket connection. |
| | 80 | |
| | 81 | ==== Traffic Conditions Message Format ==== |
| | 82 | |
| | 83 | TODO: document traffic conditions message |
| | 84 | |
| | 85 | === FEP Simulator to ATMS === |
| | 86 | |
| | 87 | The FEP Simulator communicates with the ATMS via RPC. It sends fep_reply structs which contain traffic condition data. |
| | 88 | |
| | 89 | ==== fep_reply struct ==== |
| | 90 | |
| | 91 | TODO: document fep_reply struct |
| | 92 | |