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

The “EvacuationVisualizer3DMain” class

This is the main class that starts the execution of the 3D evacuation visualizer. To implement this class:

  1. Inside the package “edu.utdallas.mavs.evacuation.visualization.vis3D”, create a class named “EvacuationVisualizer3DMain”.
  2. The class provides an implementation of the “main” method that configures, initializes, and starts the 3D visualizer. The following code provides a full implementation for this class:
package edu.utdallas.mavs.evacuation.visualization.vis3D;

import org.apache.log4j.PropertyConfigurator;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Stage;

import edu.utdallas.mavs.divas.visualization.guice.CommunicationModuleProvider;
import edu.utdallas.mavs.evacuation.visualization.guice.EvacuationVisualizerModule;

 * 3D visualization system for DIVAs.
 * <p>
 * This 3D visualizer is built on a client-server architecture, providing visualization of DIVAs simulations. Based on JMonkey 3.
public class EvacuationVisualizer3DMain
     * The 3D visualizer entry point. Configures and initializes the visualizer.
     * @param args to be passed to the visualizer. Currently no args are processed.
    public static void main(String args[])
        // disable java logging (used by jme)

        // configure logging properties

        // Sets the simulation host IP and port properties
        CommunicationModuleProvider.setConnectionProperties(args[0].split(" ")[0], args[0].split(" ")[1]);

        final Injector injector = Guice.createInjector(Stage.PRODUCTION, new EvacuationVisualizerModule());
        final EvacuationVisualizer3DApplication visualizerApplication = injector.getInstance(EvacuationVisualizer3DApplication.class);