Class ScenarioTestRunner.BatchExecutor
java.lang.Object
neqsim.process.util.scenario.ScenarioTestRunner.BatchExecutor
- Enclosing class:
ScenarioTestRunner
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(String name, ProcessSafetyScenario scenario, String logicToActivate, double duration, double timeStep) Adds a standard scenario to the batch.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.voidexecute()Executes all scenarios in the batch with automatic header and dashboard display.voidExecutes all scenarios in the batch without printing header or dashboard (manual control).
-
Field Details
-
scenarios
-
-
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 scenarioscenario- the safety scenario to executelogicToActivate- the name of the logic to activate (can be null)duration- the simulation duration in secondstimeStep- 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 scenarioscenario- the safety scenario to executelogicToActivate- the name of the logic to activateactivationDelay- the delay in milliseconds before activating logicactivationMessage- the message to print when activating logicduration- the simulation duration in secondstimeStep- 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).
-