Class SimulationSpecImpl

  • All Implemented Interfaces:
    SimulationSpec

    public class SimulationSpecImpl
    extends java.lang.Object
    implements SimulationSpec
    Supervisor type which manages set up and run benchmark tests. The class follows the steps required to initiate a test execution i.e configure and search for benchmark jobs by using SimulationJobsScanner. Once jobs are ready to execute, the implementation starts each one while providing a context to them.

    A Context instance is a storage associated with each benchmark job.

    Since:
    1.0
    Author:
    Erhan Bagdemir
    See Also:
    SimulationConfig, SimulationJobsScanner, Context
    • Constructor Summary

      Constructors 
      Constructor Description
      SimulationSpecImpl​(java.lang.String path, java.lang.String simulationName)
      Constructs a new instance of SimulationSpecImpl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start()
      Execute all tests, detected by scanning the paths defined in the configuration.
      void stop()
      Stop all running tests.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimulationSpecImpl

        public SimulationSpecImpl​(java.lang.String path,
                                  java.lang.String simulationName)
        Constructs a new instance of SimulationSpecImpl.
        Parameters:
        path - Path to properties file.
        simulationName - Simulation name.
    • Method Detail

      • start

        public void start()
        Description copied from interface: SimulationSpec
        Execute all tests, detected by scanning the paths defined in the configuration.
        Specified by:
        start in interface SimulationSpec