Class ScenarioExecutionSummary
java.lang.Object
neqsim.process.util.scenario.ScenarioExecutionSummary
Summary of scenario execution results.
Captures:
- Scenario name and configuration
- Logic execution results
- Errors and warnings
- Performance metrics
- Version:
- 1.0
- Author:
- ESOL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResult of a logic sequence execution. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate ScenarioKPIprivate final Map<String, ScenarioExecutionSummary.LogicResult> private ProcessSafetyScenarioprivate final Stringprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionScenarioExecutionSummary(String scenarioName) Creates a new scenario execution summary. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an error message.voidaddLogicResult(String logicName, LogicState finalState, String statusDescription) Adds a logic execution result.voidaddWarning(String warning) Adds a warning message.Gets all error messages.longGets the execution time.getKPI()Gets the KPI metrics for this scenario.Gets logic execution results.Gets the scenario configuration.Gets the scenario name.Gets all warning messages.booleanChecks if the scenario executed successfully.voidPrints detailed scenario results to console.voidsetExecutionTime(long executionTimeMs) Sets the execution time.voidsetKPI(ScenarioKPI kpi) Sets the KPI metrics for this scenario.voidsetScenario(ProcessSafetyScenario scenario) Sets the scenario configuration.
-
Field Details
-
scenarioName
-
scenario
-
errors
-
warnings
-
logicResults
-
executionTimeMs
private long executionTimeMs -
successful
private boolean successful -
kpi
-
-
Constructor Details
-
ScenarioExecutionSummary
Creates a new scenario execution summary.- Parameters:
scenarioName- name of the scenario
-
-
Method Details
-
getScenarioName
-
setScenario
Sets the scenario configuration.- Parameters:
scenario- scenario configuration
-
getScenario
Gets the scenario configuration.- Returns:
- scenario configuration
-
addError
-
addWarning
Adds a warning message.- Parameters:
warning- warning description
-
getErrors
-
getWarnings
-
addLogicResult
Adds a logic execution result.- Parameters:
logicName- name of the logic sequencefinalState- final state of the logicstatusDescription- detailed status description
-
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
Sets the KPI metrics for this scenario.- Parameters:
kpi- scenario KPI metrics
-
getKPI
-
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
-