Class InstrumentDesignResponse

java.lang.Object
neqsim.process.instrumentdesign.InstrumentDesignResponse
All Implemented Interfaces:
Serializable

public class InstrumentDesignResponse extends Object implements Serializable
Response class for instrument design JSON export.

Provides a structured representation of instrument design data for JSON serialization. Includes equipment identification, instrument index, I/O summary, and cost summary.

Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • equipmentName

      private String equipmentName
    • equipmentType

      private String equipmentType
    • totalInstruments

      private int totalInstruments
    • ioSummary

      private Map<String,Integer> ioSummary
    • safetyInstrumentCount

      private int safetyInstrumentCount
    • totalCostUSD

      private double totalCostUSD
    • instrumentIndex

      private List<Map<String,Object>> instrumentIndex
  • Constructor Details

    • InstrumentDesignResponse

      public InstrumentDesignResponse()
      Default constructor.
    • InstrumentDesignResponse

      public InstrumentDesignResponse(InstrumentDesign design)
      Constructor from InstrumentDesign.
      Parameters:
      design - the instrument design object
  • Method Details

    • populateFromDesign

      public void populateFromDesign(InstrumentDesign design)
      Populate from an InstrumentDesign instance.
      Parameters:
      design - the instrument design object
    • toJson

      public String toJson()
      Serialize to JSON.
      Returns:
      JSON string