Skip to content

RUN_ANALYTIC_EVALUATION

Is a command call of the message port "Analysis" that executes the analytic evaluation without showing the start dialog.

Syntax

leo-grammar
CC "Analysis" RUN_ANALYTIC_EVALUATION modelid:intValue
										[ dpy:intValue ]
										[ hpd:intValue ]
										[ volume:intValue ]
										[ simoption:intValue ]
										[ accuracy:intValue ]
										[ maxlooplen:intValue ]
										[ maxpaths:intValue ]
										[ auto-close: boolValue]
										[ no-result-window ]
										[ auto-save-results ]
										[ no-error-messages: boolValue ] .
										
# -->	RESULT ecode:intValue  errmsg:strValue
CC "Analysis" RUN_ANALYTIC_EVALUATION modelid:intValue
										[ dpy:intValue ]
										[ hpd:intValue ]
										[ volume:intValue ]
										[ simoption:intValue ]
										[ accuracy:intValue ]
										[ maxlooplen:intValue ]
										[ maxpaths:intValue ]
										[ auto-close: boolValue]
										[ no-result-window ]
										[ auto-save-results ]
										[ no-error-messages: boolValue ] .
										
# -->	RESULT ecode:intValue  errmsg:strValue

Parameters

  • modelid (idValue) - ID of the model to be simulated.
  • dpy (intValue, optional) - working days per year. If not given, the default (e.g. from the last simulation) will be used. There is no check done, wether dpy <= 365.
  • hpd (intValue, optional) - orking hours per day. If not given, the default (e.g. from the last simulation) will be used. There is no check done, whether hpd <= 24.
  • volume (intValue, optional) - process volume. If not given, the default will be used.
  • simoption (intValue, optional) - number of the SimMapping option to be used [1 .. n-1]. If not given, the default (e.g. from the last simulation) will be used. If a too small value (<= 0) is passed, 1 is assumed. If a too large value is passed, an error message will be displayed.
  • accuracy (intValue, optional) - value for accuracy (1 - 100).
  • maxlooplen (intValue, optional) - value for max loop length.
  • maxpaths (intValue, optional) - value for max paths.
  • auto-close (boolValue, , optional) - sets an automated answer to the query about models being closed after the simulation. The query will not be displayed to the user. (If the models need to be saved before closing them, the user will still be asked if that shall be done.)
  • no-result-window (modifier, optional) - if given, no result window will be displayed.
  • auto-save-results (modifier, optional) - if given, the simulation results (under consideration of the volume in the process start) will automatically be saved to the models after the analytical evaluation. (If any models have to be loaded before the evaluation, they will be loaded with write-access. If this is not possible, the evaluation will be terminated with the error message [aanaeval-07].) If the volume in the process start is "0" then the simulation results will be saved for one process instance (assuming a volume of "1"). This was requested by "Barmer EK".
  • no-error-messages (boolValue, optional)

Returns

  • ecode (intValue) - Contains the error code or 0 in case of success.
  • errmsg (strValue) - Contains the error message if applicable, otherwise an empty string is returned.

Details

The result value ecode is either 0 (meaning success) or 1 (= error or dialog was canceled by user).
The result value errmsg holds the error message of the last (if any) error that occured. This message is the same text that is usually displayed to the user in an ErrorBox. Please note that the text may differ for different ADOxx version.

See Also

EXEC_ANALYTIC_EVALUATION_START_DLG

Examples

asc
CC "Modeling" GET_ACT_MODEL
SET i_nowModelId:(modelid)

CC "Analysis" RUN_ANALYTIC_EVALUATION modelid:(i_nowModelId)
CC "Modeling" GET_ACT_MODEL
SET i_nowModelId:(modelid)

CC "Analysis" RUN_ANALYTIC_EVALUATION modelid:(i_nowModelId)

Only works if the model is created with a modeltype containing subclasses of ADOxx's simulation metamodel.

Versions and Changes

Available since ADOxx 1.3