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

    Fields 
    Modifier and Type Field Description
    static boolean json  
    static int simType  
    static boolean table  
    static boolean trace  
    static boolean verbose  
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • verbose

      public static boolean verbose
    • table

      public static boolean table
    • json

      public static boolean json
    • trace

      public static boolean trace
    • simType

      public static int simType
  • Constructor Details

  • 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 simulation
      raClass - raClass name if is set
      trace - activates the Tracer class functionalities
      verbose - activates the printing of information about the simulation, on runtime, for debugging purposes
      table - activates the printing of information about the simulation in table format
      json - activates the printing of information about the simulation in json format
      forcedLoad - range of loads for which several simulations are automated; if not specified, load is taken from the XML file
      seed - a number in the interval [1,25] that defines up to 25 different random simulations