Data storage in models
In apiMAX a Composite model is implemented such as an object with a symbol, a method, and eventually data items and code. Model Data Sets and Data Item declarations are saved with the declaring model. That is, inside the Composite model which declares the items.
The values for each Data Item are saved in the calling model. That is, the Case model which integrates the composite item and runs it. For example, the Two-Stage_Flash Composite Model has two Flash items.
Each Flash item contains values for the two Flash model Data Items, Flash Pressure and Flash Warning. Values for Flash Pressure and Flash Warning are saved in the Two-Stage_Flash Composite Model file. However the Flash model Data items are saved within the Case model where the composite items are used.
|
Items |
Declaring model |
Calling model |
|
Model |
Two Stage Flash Composite Model |
Two Stage Flash Case Model |
|
Flash Pressure |
Stored locally |
|
|
Flash Warning |
Stored locally |
|
|
Flash Data Items |
Stored in calling model |