Class ProcessConnection
java.lang.Object
neqsim.process.processmodel.ProcessConnection
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConnection types in a process model. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProcessConnection(String sourceEquipment, String targetEquipment) Creates a material connection with default port names.ProcessConnection(String sourceEquipment, String sourcePort, String targetEquipment, String targetPort, ProcessConnection.ConnectionType type) Creates a new process connection. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the source equipment name.Returns the source port name.Returns the IEC 81346 reference designation of the source equipment, if set.Returns the target equipment name.Returns the target port name.Returns the IEC 81346 reference designation of the target equipment, if set.getType()Returns the connection type.inthashCode()voidsetSourceReferenceDesignation(String sourceReferenceDesignation) Sets the IEC 81346 reference designation of the source equipment.voidsetTargetReferenceDesignation(String targetReferenceDesignation) Sets the IEC 81346 reference designation of the target equipment.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
sourceEquipment
-
sourcePort
-
targetEquipment
-
targetPort
-
type
-
sourceReferenceDesignation
-
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 equipmentsourcePort- port name on the source equipment (e.g. "gasOut", "outlet")targetEquipment- name of the downstream equipmenttargetPort- port name on the target equipment (e.g. "inlet")type- connection type
-
ProcessConnection
-
-
Method Details
-
getSourceEquipment
Returns the source equipment name.- Returns:
- source equipment name
-
getSourcePort
-
getTargetEquipment
Returns the target equipment name.- Returns:
- target equipment name
-
getTargetPort
-
getType
Returns the connection type.- Returns:
- connection type
-
getSourceReferenceDesignation
Returns the IEC 81346 reference designation of the source equipment, if set.- Returns:
- source reference designation string, or
null
-
setSourceReferenceDesignation
Sets the IEC 81346 reference designation of the source equipment.- Parameters:
sourceReferenceDesignation- source ref des string (e.g. "=A1.B1")
-
getTargetReferenceDesignation
Returns the IEC 81346 reference designation of the target equipment, if set.- Returns:
- target reference designation string, or
null
-
setTargetReferenceDesignation
Sets the IEC 81346 reference designation of the target equipment.- Parameters:
targetReferenceDesignation- target ref des string (e.g. "=A1.K1")
-
hashCode
-
equals
-
toString
-