Class ProcessSnapshot
java.lang.Object
neqsim.process.util.export.ProcessSnapshot
- All Implemented Interfaces:
Serializable
Represents a snapshot of a process system state at a point in time.
Snapshots capture the complete state of measurement devices and key process variables, enabling checkpointing, comparison, and state restoration.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProcessSnapshot(String snapshotId) Creates a new process snapshot.ProcessSnapshot(String snapshotId, Instant timestamp) Creates a snapshot with a specific timestamp. -
Method Summary
Modifier and TypeMethodDescriptiondiff(ProcessSnapshot other) Calculates the difference from another snapshot.Gets all measurements as a map.Gets the description.doublegetMeasurement(String name) Gets a measurement value.String[]Gets all measurement names.getMeasurementUnit(String name) Gets a measurement unit.Gets the snapshot ID.Gets additional state information.Gets the snapshot timestamp.voidsetDescription(String description) Sets the description.voidsetMeasurement(String name, double value, String unit) Stores a measurement value.voidStores additional state information.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
snapshotId
-
timestamp
-
measurementValues
-
measurementUnits
-
additionalState
-
description
-
-
Constructor Details
-
ProcessSnapshot
Creates a new process snapshot.- Parameters:
snapshotId- unique identifier for this snapshot
-
ProcessSnapshot
-
-
Method Details
-
setMeasurement
-
getMeasurement
Gets a measurement value.- Parameters:
name- measurement name- Returns:
- the value or NaN if not found
-
getMeasurementUnit
-
getMeasurementNames
Gets all measurement names.- Returns:
- array of measurement names
-
setState
-
getState
-
getSnapshotId
-
getTimestamp
-
getDescription
-
setDescription
Sets the description.- Parameters:
description- snapshot description
-
getAllMeasurements
-
diff
Calculates the difference from another snapshot.- Parameters:
other- the other snapshot- Returns:
- ProcessDelta representing the changes
-
toString
-