Class ScenarioExecutionSummary

java.lang.Object
neqsim.process.util.scenario.ScenarioExecutionSummary

public class ScenarioExecutionSummary extends Object
Summary of scenario execution results.

Captures:

  • Scenario name and configuration
  • Logic execution results
  • Errors and warnings
  • Performance metrics
Version:
1.0
Author:
ESOL
  • Field Details

  • Constructor Details

    • ScenarioExecutionSummary

      public ScenarioExecutionSummary(String scenarioName)
      Creates a new scenario execution summary.
      Parameters:
      scenarioName - name of the scenario
  • Method Details

    • getScenarioName

      public String getScenarioName()
      Gets the scenario name.
      Returns:
      scenario name
    • setScenario

      public void setScenario(ProcessSafetyScenario scenario)
      Sets the scenario configuration.
      Parameters:
      scenario - scenario configuration
    • getScenario

      public ProcessSafetyScenario getScenario()
      Gets the scenario configuration.
      Returns:
      scenario configuration
    • addError

      public void addError(String error)
      Adds an error message.
      Parameters:
      error - error description
    • addWarning

      public void addWarning(String warning)
      Adds a warning message.
      Parameters:
      warning - warning description
    • getErrors

      public List<String> getErrors()
      Gets all error messages.
      Returns:
      list of errors
    • getWarnings

      public List<String> getWarnings()
      Gets all warning messages.
      Returns:
      list of warnings
    • addLogicResult

      public void addLogicResult(String logicName, LogicState finalState, String statusDescription)
      Adds a logic execution result.
      Parameters:
      logicName - name of the logic sequence
      finalState - final state of the logic
      statusDescription - detailed status description
    • getLogicResults

      public Map<String, ScenarioExecutionSummary.LogicResult> getLogicResults()
      Gets logic execution results.
      Returns:
      map of logic name to result
    • setExecutionTime

      public void setExecutionTime(long executionTimeMs)
      Sets the execution time.
      Parameters:
      executionTimeMs - execution time in milliseconds
    • getExecutionTime

      public long getExecutionTime()
      Gets the execution time.
      Returns:
      execution time in milliseconds
    • isSuccessful

      public boolean isSuccessful()
      Checks if the scenario executed successfully.
      Returns:
      true if successful (no errors)
    • setKPI

      public void setKPI(ScenarioKPI kpi)
      Sets the KPI metrics for this scenario.
      Parameters:
      kpi - scenario KPI metrics
    • getKPI

      public ScenarioKPI getKPI()
      Gets the KPI metrics for this scenario.
      Returns:
      scenario KPI metrics
    • printResults

      public void printResults()
      Prints detailed scenario results to console.

      This is a convenience method for consistent result formatting. It displays:

      • Overall status (success or completed with issues)
      • All errors (if any)
      • All warnings (if any)
      • Logic execution results