Class TimeSeriesExporter

java.lang.Object
neqsim.process.util.export.TimeSeriesExporter

public class TimeSeriesExporter extends Object
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
  • Field Details

  • Constructor Details

    • TimeSeriesExporter

      public TimeSeriesExporter(ProcessSystem processSystem)
      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

      public String exportToJson()
      Exports collected data in JSON format compatible with AI platforms.
      Returns:
      JSON string
    • exportForAIPlatform

      public String exportForAIPlatform(List<String> tags, Instant startTime)
      Exports data for specific tags in AI platform format.
      Parameters:
      tags - list of tag names to export
      startTime - start of time range
      Returns:
      JSON string
    • exportToCsv

      public String exportToCsv()
      Exports data as CSV format.
      Returns:
      CSV string
    • exportMatrix

      public double[][] exportMatrix(List<String> tags)
      Exports data as a 2D matrix for ML training.
      Parameters:
      tags - tags to include as columns
      Returns:
      2D array (rows = time points, columns = tags)
    • importFromHistorian

      public void importFromHistorian(String json)
      Imports historian data from JSON.
      Parameters:
      json - JSON string with time series data
    • createSnapshot

      public ProcessSnapshot createSnapshot(String snapshotId)
      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

      public List<TimeSeriesExporter.TimeSeriesPoint> getCollectedData()
      Gets all collected data points.
      Returns:
      list of time series points