Fairness
Class SimulationBuilder

java.lang.Object
  extended by Fairness.SimulationBuilder

public class SimulationBuilder
extends java.lang.Object

SimulationBuilder builds a Simulation from the input file and returns a SimulationRunner that is used to actually execute the Simulation. The SimulationBuilder cannot be instantiated; it has only a single static method.


Method Summary
static SimulationRunner buildSimulation(java.io.File input, java.io.File outputDir)
          Builds a Simulation and wraps it into a SimulationRunner for execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildSimulation

public static SimulationRunner buildSimulation(java.io.File input,
                                               java.io.File outputDir)
                                        throws java.io.IOException,
                                               SimulationInputException
Builds a Simulation and wraps it into a SimulationRunner for execution.

Parameters:
input - non-null input file
outputDir - non-null output directory path
Returns:
non-null SimulationRunner
Throws:
java.io.IOException - if there is an error reading input files
SimulationInputException - if the input files are in the wrong format.