Class DexpiStream

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

public class DexpiStream extends Stream
Stream created from DEXPI piping segments while preserving key metadata.

This class extends the standard Stream to carry DEXPI-specific metadata such as line numbers and fluid codes.

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

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • dexpiClass

      private final String dexpiClass
    • lineNumber

      private final String lineNumber
    • fluidCode

      private final String fluidCode
  • Constructor Details

    • DexpiStream

      public DexpiStream(String name, SystemInterface fluid, String dexpiClass, String lineNumber, String fluidCode)
      Creates a new DEXPI stream.
      Parameters:
      name - the stream name
      fluid - the thermodynamic system
      dexpiClass - the original DEXPI component class
      lineNumber - the line number reference (may be null)
      fluidCode - the fluid code reference (may be null)
  • Method Details

    • getDexpiClass

      public String getDexpiClass()
      Gets the original DEXPI component class.
      Returns:
      the DEXPI class name
    • 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