Class ProcessResult

java.lang.Object
neqsim.mcp.model.ProcessResult

public class ProcessResult extends Object
Typed result model for process simulations.

Contains the simulation report JSON, the process system reference (for further Java-side inspection), and the process system name. This is the typed counterpart for the JSON returned by ProcessRunner.run(String).

Version:
1.0
Author:
Even Solbraa
  • Field Details

    • processSystemName

      private final String processSystemName
    • processSystem

      private final transient ProcessSystem processSystem
    • reportJson

      private final String reportJson
  • Constructor Details

    • ProcessResult

      public ProcessResult(String processSystemName, ProcessSystem processSystem, String reportJson)
      Creates a process result.
      Parameters:
      processSystemName - the process system name
      processSystem - the process system reference (transient — not serialized)
      reportJson - the simulation report as JSON string
  • Method Details

    • getProcessSystemName

      public String getProcessSystemName()
      Gets the process system name.
      Returns:
      the name
    • getProcessSystem

      public ProcessSystem getProcessSystem()
      Gets the process system reference for further Java-side access.
      Returns:
      the process system, or null if not available
    • getReportJson

      public String getReportJson()
      Gets the simulation report as a JSON string.
      Returns:
      the report JSON