Class ProcessSafetyReport
java.lang.Object
neqsim.process.util.report.safety.ProcessSafetyReport
Immutable value object containing all information gathered by the
ProcessSafetyReportBuilder.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a single condition monitoring finding.static final classSummary of a relief valve evaluation.static final classCaptures the pressure margin for an equipment item.static final classSnapshot of aggregated system KPIs. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ProcessSafetyReport.ConditionFinding> Condition monitoring findings.private final StringSerialized process snapshot produced byReport.private final List<ProcessSafetyReport.ReliefDeviceAssessment> Metrics for relief and safety valves.private final List<ProcessSafetyReport.SafetyMarginAssessment> Calculated safety margins for equipment.private final StringScenario label supplied by the caller.private final ProcessSafetyReport.SystemKpiSnapshotSystem level KPIs.private final ProcessSafetyThresholdsThresholds used when grading severities (copied for traceability). -
Constructor Summary
ConstructorsConstructorDescriptionProcessSafetyReport(String scenarioLabel, ProcessSafetyThresholds thresholds, List<ProcessSafetyReport.ConditionFinding> conditionFindings, List<ProcessSafetyReport.SafetyMarginAssessment> safetyMargins, List<ProcessSafetyReport.ReliefDeviceAssessment> reliefDeviceAssessments, ProcessSafetyReport.SystemKpiSnapshot systemKpis, String equipmentSnapshotJson) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidappendCsvRow(StringBuilder sb, String category, String name, String metric, String value, SeverityLevel severity, String details) private static Stringprivate static StringformatDouble(double value) toCsv()Produce a CSV representation of the key findings.toJson()Serialize the report to JSON.Produce a map structure that can easily be consumed by dashboards or REST APIs.
-
Field Details
-
conditionFindings
Condition monitoring findings. -
safetyMargins
Calculated safety margins for equipment. -
reliefDeviceAssessments
Metrics for relief and safety valves. -
systemKpis
System level KPIs. -
equipmentSnapshotJson
-
scenarioLabel
Scenario label supplied by the caller. -
thresholds
Thresholds used when grading severities (copied for traceability).
-
-
Constructor Details
-
ProcessSafetyReport
ProcessSafetyReport(String scenarioLabel, ProcessSafetyThresholds thresholds, List<ProcessSafetyReport.ConditionFinding> conditionFindings, List<ProcessSafetyReport.SafetyMarginAssessment> safetyMargins, List<ProcessSafetyReport.ReliefDeviceAssessment> reliefDeviceAssessments, ProcessSafetyReport.SystemKpiSnapshot systemKpis, String equipmentSnapshotJson)
-
-
Method Details
-
getScenarioLabel
-
getThresholds
-
getConditionFindings
-
getSafetyMargins
-
getReliefDeviceAssessments
-
getSystemKpis
-
getEquipmentSnapshotJson
-
toJson
Serialize the report to JSON. The structure is intentionally friendly for dashboards and audit archiving.- Returns:
- JSON representation of the report
-
toCsv
Produce a CSV representation of the key findings. The CSV is organized with a single header allowing it to be imported into spreadsheets.- Returns:
- CSV formatted summary
-
appendCsvRow
private static void appendCsvRow(StringBuilder sb, String category, String name, String metric, String value, SeverityLevel severity, String details) -
escapeCsv
-
formatDouble
-
toUiModel
-