Class TimeSeriesExporter
java.lang.Object
neqsim.process.util.export.TimeSeriesExporter
Exports process simulation data as time series for external ML/AI platforms.
This class provides standardized export formats compatible with AI-based production optimization platforms and digital twin systems.
- Version:
- 1.0
- Author:
- ESOL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a single time series data point. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TimeSeriesExporter.TimeSeriesPoint> private final com.google.gson.Gsonprivate final ProcessSystem -
Constructor Summary
ConstructorsConstructorDescriptionTimeSeriesExporter(ProcessSystem processSystem) Creates a new time series exporter. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears collected data.voidCollects a snapshot of current values.createSnapshot(String snapshotId) Creates a ProcessSnapshot from the latest collected data.exportForAIPlatform(List<String> tags, Instant startTime) Exports data for specific tags in AI platform format.double[][]exportMatrix(List<String> tags) Exports data as a 2D matrix for ML training.Exports data as CSV format.Exports collected data in JSON format compatible with AI platforms.Gets all collected data points.intGets the number of collected data points.voidimportFromHistorian(String json) Imports historian data from JSON.
-
Field Details
-
processSystem
-
collectedData
-
gson
private final com.google.gson.Gson gson
-
-
Constructor Details
-
TimeSeriesExporter
Creates a new time series exporter.- Parameters:
processSystem- the process system to export from
-
-
Method Details
-
collectSnapshot
public void collectSnapshot()Collects a snapshot of current values. -
exportToJson
Exports collected data in JSON format compatible with AI platforms.- Returns:
- JSON string
-
exportForAIPlatform
-
exportToCsv
-
exportMatrix
-
importFromHistorian
Imports historian data from JSON.- Parameters:
json- JSON string with time series data
-
createSnapshot
Creates a ProcessSnapshot from the latest collected data.- Parameters:
snapshotId- ID for the snapshot- Returns:
- process snapshot
-
clearData
public void clearData()Clears collected data. -
getDataPointCount
public int getDataPointCount()Gets the number of collected data points.- Returns:
- count of time series points
-
getCollectedData
Gets all collected data points.- Returns:
- list of time series points
-