Class ScenarioTestRunner.BatchExecutor

java.lang.Object
neqsim.process.util.scenario.ScenarioTestRunner.BatchExecutor
Enclosing class:
ScenarioTestRunner

public class ScenarioTestRunner.BatchExecutor extends Object
Fluent builder for batch execution of multiple scenarios.

This inner class provides a convenient way to define and execute multiple scenarios in sequence with automatic header printing and dashboard display at the end.

Version:
1.0
Author:
ESOL
  • Field Details

  • Constructor Details

    • BatchExecutor

      public BatchExecutor()
  • Method Details

    • add

      public ScenarioTestRunner.BatchExecutor add(String name, ProcessSafetyScenario scenario, String logicToActivate, double duration, double timeStep)
      Adds a standard scenario to the batch.
      Parameters:
      name - the display name for the scenario
      scenario - the safety scenario to execute
      logicToActivate - the name of the logic to activate (can be null)
      duration - the simulation duration in seconds
      timeStep - the time step in seconds
      Returns:
      this batch executor for method chaining
    • addDelayed

      public ScenarioTestRunner.BatchExecutor addDelayed(String name, ProcessSafetyScenario scenario, String logicToActivate, long activationDelay, String activationMessage, double duration, double timeStep)
      Adds a scenario with delayed logic activation to the batch.
      Parameters:
      name - the display name for the scenario
      scenario - the safety scenario to execute
      logicToActivate - the name of the logic to activate
      activationDelay - the delay in milliseconds before activating logic
      activationMessage - the message to print when activating logic
      duration - the simulation duration in seconds
      timeStep - the time step in seconds
      Returns:
      this batch executor for method chaining
    • execute

      public void execute()
      Executes all scenarios in the batch with automatic header and dashboard display.
    • executeWithoutWrapper

      public void executeWithoutWrapper()
      Executes all scenarios in the batch without printing header or dashboard (manual control).