The Algorithm Library provides a basic set of predefined parameter and value types listed in Table 3.2. Additional simulator specific parameter types and their related operators can easily be defined by appropriate C++ classes (Section 2.3.1.1).
Type | Description |
int | integer values |
long | long integer values |
double | real values |
MdlBool | boolean values |
MdlString | string values |
StdStream | input/output stream |
Parameters can be defined within global scope (Section 3.1.7.1) or as local, static, and interface parameters of a specific MDL class (Section 3.2.1 - Section 3.2.3). In any of these cases a parameter of the type parType and the name parName is defined using the following syntax:
Parameter<parType> parName;
Parameter<parType> parName = expr;
The optional default value results from the evaluation of the MDL expression expr.