Class ProcessConnection

java.lang.Object
neqsim.process.processmodel.ProcessConnection
All Implemented Interfaces:
Serializable

public class ProcessConnection extends Object implements Serializable
Represents an explicit connection between two process elements identified by name and port. This allows users and interchange formats (DEXPI) to declare connections independently of stream objects, enabling topology-first model construction.
Version:
$Id: $Id
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • sourceEquipment

      private final String sourceEquipment
    • sourcePort

      private final String sourcePort
    • targetEquipment

      private final String targetEquipment
    • targetPort

      private final String targetPort
    • type

    • sourceReferenceDesignation

      private String sourceReferenceDesignation
    • targetReferenceDesignation

      private String targetReferenceDesignation
  • Constructor Details

    • ProcessConnection

      public ProcessConnection(String sourceEquipment, String sourcePort, String targetEquipment, String targetPort, ProcessConnection.ConnectionType type)
      Creates a new process connection.
      Parameters:
      sourceEquipment - name of the upstream equipment
      sourcePort - port name on the source equipment (e.g. "gasOut", "outlet")
      targetEquipment - name of the downstream equipment
      targetPort - port name on the target equipment (e.g. "inlet")
      type - connection type
    • ProcessConnection

      public ProcessConnection(String sourceEquipment, String targetEquipment)
      Creates a material connection with default port names.
      Parameters:
      sourceEquipment - name of the upstream equipment
      targetEquipment - name of the downstream equipment
  • Method Details

    • getSourceEquipment

      public String getSourceEquipment()
      Returns the source equipment name.
      Returns:
      source equipment name
    • getSourcePort

      public String getSourcePort()
      Returns the source port name.
      Returns:
      source port name
    • getTargetEquipment

      public String getTargetEquipment()
      Returns the target equipment name.
      Returns:
      target equipment name
    • getTargetPort

      public String getTargetPort()
      Returns the target port name.
      Returns:
      target port name
    • getType

      Returns the connection type.
      Returns:
      connection type
    • getSourceReferenceDesignation

      public String getSourceReferenceDesignation()
      Returns the IEC 81346 reference designation of the source equipment, if set.
      Returns:
      source reference designation string, or null
    • setSourceReferenceDesignation

      public void setSourceReferenceDesignation(String sourceReferenceDesignation)
      Sets the IEC 81346 reference designation of the source equipment.
      Parameters:
      sourceReferenceDesignation - source ref des string (e.g. "=A1.B1")
    • getTargetReferenceDesignation

      public String getTargetReferenceDesignation()
      Returns the IEC 81346 reference designation of the target equipment, if set.
      Returns:
      target reference designation string, or null
    • setTargetReferenceDesignation

      public void setTargetReferenceDesignation(String targetReferenceDesignation)
      Sets the IEC 81346 reference designation of the target equipment.
      Parameters:
      targetReferenceDesignation - target ref des string (e.g. "=A1.K1")
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object