+1 (972) 883-2091
ECSS 4.220, 800 W Campbell Rd, Richardson, TX 75083–0688, US

Tunning the “evacuation-simulation” module configuration and creating its inner packages

The “evacuation-simulation” module is responsible for creating the simulation host and executing the core of the simulation. In this tutorial, we illustrate the process of tuning the configuration of the “evacuation-simulation” module and the creation of its inner packages

1. Tunning the POM configurations of the Evacuation Simulation System

First, we start by updating the POM configuration of the “evacuation-simulation” module to manage its dependencies.

  1. Double click on the file “pom.xml” under the “evacuation-simulation” module. The Maven POM Editor should appear.
  2. In the opened window, click on the tab “pom.xml”. The content of the project object model (POM) should be displayed in XML format as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
          <description>Simualtion of the evacuation system</description>
  3. Add the module dependencies configuration as follows:
    <!-- ======================================= -->
    <!-- ==== Dependencies === -->
    <!-- ======================================= -->
    <!-- Project Dependencies -->
       <!-- General Dependencies -->

    Please import DIVAs if there exists error at dependency “divas-core”.

  1. The assembly mechanism in Maven provides an easy way to create distributions using a assembly descriptor and dependency information found in you POM. In order to use the assembly plug-in you need to configure the assembly plug-in in your POM. To do so, copy/paste the following code into the “pom.xml” to define maven configuration used to build the “evacuation-simulation” module:
                <!-- ======================================= -->
                <!-- ==== Assembly Plugin Configuration ==== -->
                <!-- ======================================= -->
                                     <copy todir="${project.build.directory}">
                                        <fileset dir="${basedir}" includes="*.properties" />

2. Creating the “evacuation-simulation” main packages


  1. Right click on the folder “src/main/java” > New > Package and create a package named “edu.utdallas.mavs.evacuation.simulation”. You can use your own rules to name the package.
  2. Inside the package “edu.utdallas.mavs.evacuation.simulation”, create a class named “EvacuationMain”. This is done by: Right click the “edu.utdallas.mavs.evacuation.simulation” package > select “New” > “Class” and type “EvacuationMain” inside the “Name” text box. At this stage, we will leave the class implementation empty as we are interested in specifying the main taxonomy of our project. Detailed implementation steps of this class will be discussed in tutorial 9.
  3. Create the following sub-packages inside “edu.utdallas.mavs.evacuation.simulation”:
      1. config
      2. guice
      3. host
      4. sim
      5. spec
      6. client

    This can be done by repeating the following steps for each of the aforementioned sub-packages: Right click the “edu.utdallas.mavs.evacuation.simulation” package > select “New” > “Package” and type the package name inside the “Name” text box.

    At the end of this tutorial, your package hierarchy should look like the following: