Class AlarmTripScheduleGenerator
java.lang.Object
neqsim.process.mechanicaldesign.AlarmTripScheduleGenerator
- All Implemented Interfaces:
Serializable
Auto-generates alarm and trip setpoints from process design envelopes.
Walks all unit operations in a ProcessSystem and generates alarm/trip setpoints based on
operating conditions and design margins per IEC 61511 and NORSOK I-001/I-002 practice. For each
measurable variable (pressure, temperature, level, flow), the generator produces LO, HI, and
HIHI/LOLO setpoints from operating values and equipment design limits.
Usage:
AlarmTripScheduleGenerator gen = new AlarmTripScheduleGenerator(process); gen.generate(); String json = gen.toJson();
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAlarm priority classification.static classRepresents a single alarm or trip setpoint entry.static enumService type classification. -
Field Summary
FieldsModifier and TypeFieldDescriptionGenerated alarm/trip entries.private ProcessSystemThe process system.private static final longSerialization version UID. -
Constructor Summary
ConstructorsConstructorDescriptionAlarmTripScheduleGenerator(ProcessSystem processSystem) Creates an alarm/trip schedule generator. -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Generates alarm and trip setpoints for all applicable equipment.private voidGenerates alarms for a compressor.private voidgenerateHeaterAlarms(Heater heater) Generates alarms for a heater or cooler.private voidGenerates alarms for a separator.private voidGenerates alarms for a valve.Gets all generated alarm/trip entries.getEntriesForEquipment(String equipmentName) Gets entries for a specific equipment.intGets the total number of generated entries.toJson()Exports the alarm/trip schedule to JSON.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
processSystem
The process system. -
entries
Generated alarm/trip entries.
-
-
Constructor Details
-
AlarmTripScheduleGenerator
Creates an alarm/trip schedule generator.- Parameters:
processSystem- the process system to analyze
-
-
Method Details
-
generate
public void generate()Generates alarm and trip setpoints for all applicable equipment. -
generateSeparatorAlarms
Generates alarms for a separator.- Parameters:
sep- the separator
-
generateCompressorAlarms
Generates alarms for a compressor.- Parameters:
comp- the compressor
-
generateHeaterAlarms
Generates alarms for a heater or cooler.- Parameters:
heater- the heater or cooler
-
generateValveAlarms
Generates alarms for a valve.- Parameters:
valve- the throttling valve
-
getEntries
Gets all generated alarm/trip entries.- Returns:
- list of alarm/trip entries
-
getEntryCount
public int getEntryCount()Gets the total number of generated entries.- Returns:
- count of entries
-
getEntriesForEquipment
Gets entries for a specific equipment.- Parameters:
equipmentName- equipment tag name- Returns:
- filtered entries for that equipment
-
toJson
-