Package ons
Class Simulator
java.lang.Object
ons.Simulator
public class Simulator
extends java.lang.Object
Centralizes the simulation execution. Defines what the command line arguments
do, and extracts the simulation information from the XML file.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Simulator()
-
Method Summary
Modifier and Type Method Description void
Execute(java.lang.String simConfigFile, java.lang.String raClass, boolean trace, boolean verbose, boolean table, boolean json, double forcedLoad, int seed)
Executes simulation based on the given XML file and the used command line arguments.
-
Field Details
-
Constructor Details
-
Simulator
public Simulator()
-
-
Method Details
-
Execute
public void Execute(java.lang.String simConfigFile, java.lang.String raClass, boolean trace, boolean verbose, boolean table, boolean json, double forcedLoad, int seed)Executes simulation based on the given XML file and the used command line arguments.- Parameters:
simConfigFile
- name of the XML file that contains all information about the simulationraClass
- raClass name if is settrace
- activates the Tracer class functionalitiesverbose
- activates the printing of information about the simulation, on runtime, for debugging purposestable
- activates the printing of information about the simulation in table formatjson
- activates the printing of information about the simulation in json formatforcedLoad
- range of loads for which several simulations are automated; if not specified, load is taken from the XML fileseed
- a number in the interval [1,25] that defines up to 25 different random simulations
-