In this tutorial, we provide a detailed description of the steps necessary to implement a traffic simulation system using DIVAs 4. DIVAs defines a set of reusable components implemented as Java libraries that provide the functionalities and abstractions to support the instantiation of concrete simulation systems. In this tutorial, we discuss an urban traffic simulator built using the DIVAs framework. The simulator includes vehicle agents situated in a virtual environment representing a city consisting of roads, intersections, traffic signs, etc.
The Figure below illustrates the process of extending and reusing DIVAs components to build a traffic simulation system. The process starts by extending the Divas-Simulation module to define concrete implementations of: 1) vehicle agent; 2) traffic environment; and 3) traffic simulation module. The process proceeds by extending the Divas-Visualization module to implement the traffic visualization system. The final step in the process is to extend the Divas-GUI to provide a concrete implementation of the GUI module. A detailed discussion for each of these steps are provided through this tutorial.