ICape Unit Port Interface
This interface represents the behaviour of a Unit
Operation connection point (Unit Operation Port). It provides different
attributes for configuring the port as well as to connect
it to a material, energy or information object.
Definition
Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
[ComImportAttribute]
[GuidAttribute("678c0999-0093-11d2-a67d-00105a42887f")]
[ComVisibleAttribute(false)]
public interface ICapeUnitPortVB
<ComImportAttribute>
<GuidAttribute("678c0999-0093-11d2-a67d-00105a42887f")>
<ComVisibleAttribute(false)>
Public Interface ICapeUnitPortRemarks
The unit port provides the the means by which a Flowsheet Unit is connected to its streams. Streams are implemented by means of material objects.
The three types of port: material, energy and information, have a lot of functionality in common. By combining the three into one we can simplify the interface to a useful degree. Each port type is to be distinguished by the value of an attribute.
Properties
| connectedObject | Returns to the client the object that is connected to this port. |
| direction | Returns port direction. |
| portType | Returns port type. |
Methods
| Connect | Connects an object to the port. For a material port it must be an object implementing the ICapeThermoMaterialObject interface, for Energy and Information ports it must be an object implementing the ICapeParameter interface. |
| Disconnect | Disconnects whatever object is connected to this port. |