Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

5.2 Implementation of the Initialize method

The SimpleRiverEngineWrapper has two private field variables:

...

The _inputExchangeItems is a list of orgOatc.OpenMI.Sdk.Backbone.InputExchangeItem objects and the _outputExchangeItems is a list of orgOatc.OpenMI.Sdk.Backbone.OutputExchangeItem objects. These arraylists are populated in the Initialize method.

The Simple River wrapper must fulfil fulfill the requirements defined by the use cases described in section 4. 2.1. This means that the input and output exchange items are based on the list of items in Table 4- 1.

The source code for implementation of the Initialize method in the SimpleRiverEngineWrapper is shown below.

...

The sequence diagram in Figure 4-23 14 illustrates the communication with the other wrapper classes when the Initialize method is invoked. The EngineDLL is not included in the diagram since there is a one-to-one communication between the EngineDLL and the EngineDLLAccess classes. In other words, each time a method is called in the EngineDLLAccess the corresponding function is called in the EngineDLL.

...

Note that no DataOperations are added to the OutputExchangeItems. The LinkableEngine class will complete the OutputExchangeItems for you by adding spatial and temporal data operations to your OutputExchangeItems. You can still add your own data operations as well.