Package ons
Class Main
java.lang.Object
ons.Main
public class Main
extends java.lang.Object
The Main class takes care of the execution of the simulator,
which includes dealing with the arguments called (or not) on
the command line.
-
Field Summary
Fields Modifier and Type Field Description static int
calls
protected static boolean
header
protected static boolean
json
static double
load
static double
maxload
static double
minload
protected static java.lang.String
raClass
static int
seed
protected static java.lang.String
simConfigFile
static double
step
protected static boolean
table
protected static boolean
trace
protected static boolean
verbose
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] args)
Instantiates a Simulator object and takes the arguments from the command line.
-
Field Details
-
header
protected static boolean header -
simConfigFile
protected static java.lang.String simConfigFile -
raClass
protected static java.lang.String raClass -
table
protected static boolean table -
json
protected static boolean json -
verbose
protected static boolean verbose -
trace
protected static boolean trace -
seed
public static int seed -
calls
public static int calls -
load
public static double load -
minload
public static double minload -
maxload
public static double maxload -
step
public static double step
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
public static void main(java.lang.String[] args)Instantiates a Simulator object and takes the arguments from the command line. Based on the number of arguments, can detect if there are too many or too few, which prints a message teaching how to run WDMSim. If the number is correct, detects which arguments were applied and makes sure they have the expected effect.- Parameters:
args
- the command line arguments
-