Ets_Output_Context_Create()
Abstract
Allocates memory for an output context object.
Syntax
Ets_Output_Context_Create (model_hndl, mode_val)
| Argument | Type | Description |
|---|---|---|
model_hndl |
EtsT_Model_Handle |
Scenario model for the output of interest. |
mode_val |
EtsT_Output_Source |
Type of analysis that generated the output. |
Return Type
EtsT_Output_Context *
Output context object; PRGC_NIL if unsuccessful.
Header
ets_api_output.h
Details
This function creates an output context object that is used to cache the state for accessing output information for specific objects (for example, from Flow Analysis or discrete event simulation). It then opens a reader for the output table associated with the specified model (model_hndl) and source (mode_val).
The required analysis data should already exist when this function is called.
The returned output context is owned by the caller and should be destroyed with Ets_Output_Context_Destroy() when no longer needed. It should be destroyed and recreated if the source analysis is rerun.