Page 3 - Demo
P. 3
Interface to Maple%uf09f %uf09f RCP Consult 2020-2026 Page 33. Register Maple specific dynamic library maplec.dll in STRUREL environmentFor final binding of STRUREL and Maple you need to register maplec.dll in each STRURELmodule (e.g. Comrel). Press the F2 key in the STRUREL module to open the PreferencesDialog Box. Go to position Standard Add-onsand check whether this dll is registered.If Maple installation, system runtime environment and binding to STRUREL are all made as described above you can start to use the Maple Interface.4. Interaction between STRUREL and MapleA major part of communication with the Maple Interface is usage of script files with extension %u2019.mpl%u2019. Two types of scripts are implemented. The first type of script describes a real procedure with a single argument being a vector containing values of all stochastic variables followed by values of all deterministic parameters as ordered in the Stochastic Model of STRUREL. If the procedure is run from the GUI for testing and debugging the stochastic variables are set to mean values. The return value of this procedure is partial or complete evaluation of the State Function in Symbolic Expression of the STRUREL job.The second type of script may contain any set of commands in Maple language. Such a script must have a statement defining variable %u2019res%u2019 as a final return value. Usually, this statement is the last one. We recommend using the first type of script, because a description of procedure will be loaded and parsed by the engine once. Then, on runtime, it will be just

