Sim
Class SimulationRunner

java.lang.Object
  extended by Sim.SimulationRunner

public class SimulationRunner
extends java.lang.Object

This class executes a simulation by executing the events. Once complete, this will compile the results and output them to an xml file.


Constructor Summary
SimulationRunner(Simulation sim, java.util.ArrayList<NodeMonitor> monitor, PacketWatcher pl, java.io.File outputDirectory)
          Constructor to create a new simulation, after this is created, simply call runSimulation
 
Method Summary
 void runSimulation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationRunner

public SimulationRunner(Simulation sim,
                        java.util.ArrayList<NodeMonitor> monitor,
                        PacketWatcher pl,
                        java.io.File outputDirectory)
Constructor to create a new simulation, after this is created, simply call runSimulation

Parameters:
sim - simulation to run
monitor - object that watches the simulation
pl - object that watches the packets during the simulation
outputDirectory - directory to store the xml files
Method Detail

runSimulation

public void runSimulation()
                   throws SimulationException
Throws:
SimulationException