Class AutomaticScenarioGenerator.ScenarioRunResult

java.lang.Object
neqsim.process.safety.scenario.AutomaticScenarioGenerator.ScenarioRunResult
All Implemented Interfaces:
Serializable
Enclosing class:
AutomaticScenarioGenerator

public static class AutomaticScenarioGenerator.ScenarioRunResult extends Object implements Serializable
Result of running a single safety scenario.
Version:
1.0
Author:
ESOL
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • scenario

      private final ProcessSafetyScenario scenario
    • successful

      private final boolean successful
    • errorMessage

      private final String errorMessage
    • resultValues

      private final Map<String,Double> resultValues
    • executionTimeMs

      private final long executionTimeMs
  • Constructor Details

    • ScenarioRunResult

      public ScenarioRunResult(ProcessSafetyScenario scenario, Map<String,Double> resultValues, long executionTimeMs)
      Creates a successful result.
      Parameters:
      scenario - the executed scenario
      resultValues - key result values captured
      executionTimeMs - execution time in milliseconds
    • ScenarioRunResult

      public ScenarioRunResult(ProcessSafetyScenario scenario, String errorMessage, long executionTimeMs)
      Creates a failed result.
      Parameters:
      scenario - the executed scenario
      errorMessage - the error that occurred
      executionTimeMs - execution time in milliseconds
  • Method Details

    • getScenario

      public ProcessSafetyScenario getScenario()
    • isSuccessful

      public boolean isSuccessful()
    • getErrorMessage

      public String getErrorMessage()
    • getResultValues

      public Map<String,Double> getResultValues()
    • getExecutionTimeMs

      public long getExecutionTimeMs()