ICapeFlowsheetMonitoring Interface

This interface provides information about error that result from values that are outside of their bounds. It can be raised to indicate that the value of either a method argument or the value of a object parameter is out of range.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[ComImportAttribute]
[GuidAttribute("834F65CC-29AE-41c7-AA32-EE8B2BAB7FC2")]
[ComVisibleAttribute(false)]
public interface ICapeFlowsheetMonitoring

Remarks

Moniting object should implement:

  • ICapeIdentification
  • IPersistStream or IPersistStreamInit in case of persistence implementation
  • ICapeUtilities for parameter collection and Edit and for accepting an ICapeSimulationContext
  • CAPE-OPEN error handling interfaces (ECape...)

Monitoring objects can possibly access the following interface via the ICapeSimulationContext interface:

  • ICapeCOSEUtilities - for named values
  • ICapeDiagnostic - for logging and popping up messages
  • ICapeMaterialTemplateSystem - for accessing material templates and creation of material objects
  • ICapeFlowsheetMonitoring - for accessing collections of streams and unit operations

Monitoring object are NOT SUPPOSED to change flowsheet configuration by:

  • modifying unit operation paramaters
  • connecting or disconnecting streams to unit operations
  • calculating unit operations
  • modifying streams by setting values
  • any other action that will change the flowsheet state

Monitoring object can:

  • obtain stream information
  • obtain unit operation information
  • duplicate material objects of streams for performing thermodynamic calculations
  • create material objects via the ICapeMaterialTemplateSystem for creating thermodynamic calculations
  • ...

In addition to the CAPE-OPEN object caterogy ID, monitoring objects should expose the Monitoring Object category ID:

CATID_MONITORING_OBJECT = 7BA1AF89-B2E4-493d-BD80-2970BF4CBE99

Properties

SolutionStatus Check whether the flowsheet is currently solved.
ValStatus Check whether the flowsheet is valid.

Methods

GetStreamCollection Get the collection of streams.
GetUnitOperationCollection Get the collection of unit operations.

See Also