|
Features
EuroSim Mission Definition Language
The Mission Definition Language (MDL) is a simple yet
versatile meta-language for simulation scripting. Actions
can be written in a limited free-text, or 'C' type
language.
It has all the facilities expected of a programming
language, including if-statements, for-loops, global and
local variables, and access to the data items in the
model's data dictionary (so called 'API' data
variables). Direct simulation control commands can also be
used in the language.Actions written in MDL can be used to:
-
record API data variables at a specified frequency to file;
-
input data values (ie. writing to API variables) as a stream of stimuli data representing some external input or state change;
-
monitor API data variables as a number or in a graph during the execution;
-
change the value of an API data variable/parameter;
-
change the simulation execution state (eg. request a pause when a particular state is reached);
-
trigger the (immediate) execution of a task;
-
print information to the test conductor console;
-
carry out combinations of the above.
Actions can be triggered directly during the execution run
by the Test Conductor, or conditions can be defined which
are automatically checked during the run. Conditions for
automatic checking can be based on:
-
API data variables reaching a certain value (or range);
-
simulation time being a specified value (or range);
-
execution state transitions;
-
combinations of the above.
Some examples of conditions and actions written using MDL follow.
|