Class DexpiProcessUnit

All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, SimulationInterface, NamedInterface

public class DexpiProcessUnit extends ProcessEquipmentBaseClass
Lightweight placeholder for equipment imported from a DEXPI XML file.

This class records the original DEXPI class together with the mapped EquipmentEnum category and contextual information like line numbers or fluid codes.

Version:
1.0
Author:
NeqSim
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • dexpiClass

      private final String dexpiClass
    • mappedEquipment

      private final EquipmentEnum mappedEquipment
    • lineNumber

      private final String lineNumber
    • fluidCode

      private final String fluidCode
  • Constructor Details

    • DexpiProcessUnit

      public DexpiProcessUnit(String name, String dexpiClass, EquipmentEnum mappedEquipment, String lineNumber, String fluidCode)
      Creates a new DEXPI process unit.
      Parameters:
      name - the equipment tag name
      dexpiClass - the original DEXPI component class
      mappedEquipment - the mapped NeqSim equipment type
      lineNumber - the line number reference (may be null)
      fluidCode - the fluid code reference (may be null)
  • Method Details

    • run

      public void run(UUID id)

      In this method all thermodynamic and unit operations will be calculated in a steady state calculation.

      Parameters:
      id - UUID
    • run

      public void run()
    • getDexpiClass

      public String getDexpiClass()
      Gets the original DEXPI component class.
      Returns:
      the DEXPI class name
    • getMappedEquipment

      public EquipmentEnum getMappedEquipment()
      Gets the mapped NeqSim equipment type.
      Returns:
      the equipment enum
    • getLineNumber

      public String getLineNumber()
      Gets the line number reference.
      Returns:
      the line number, or null if not set
    • getFluidCode

      public String getFluidCode()
      Gets the fluid code reference.
      Returns:
      the fluid code, or null if not set