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 Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final longprivate final ProcessSafetyScenarioprivate static final longprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionScenarioRunResult(ProcessSafetyScenario scenario, String errorMessage, long executionTimeMs) Creates a failed result.ScenarioRunResult(ProcessSafetyScenario scenario, Map<String, Double> resultValues, long executionTimeMs) Creates a successful result. -
Method Summary
Modifier and TypeMethodDescriptionlongboolean
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
scenario
-
successful
private final boolean successful -
errorMessage
-
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 scenarioresultValues- key result values capturedexecutionTimeMs- execution time in milliseconds
-
ScenarioRunResult
Creates a failed result.- Parameters:
scenario- the executed scenarioerrorMessage- the error that occurredexecutionTimeMs- execution time in milliseconds
-
-
Method Details
-
getScenario
-
isSuccessful
public boolean isSuccessful() -
getErrorMessage
-
getResultValues
-
getExecutionTimeMs
public long getExecutionTimeMs()
-