next up previous contents
Next: 3.6 Prefixing Model Class Names Up: 3. The Model Definition Previous: 3.4 Specifying Default Values


3.5 Linkage of MDL Class Instances

When an MDL class instance is generated by the Algorithm Library, its interface parameters are linked with the interface provided by the simulator, when one of the following conditions is met:

A linkage statement block for the MDL class instance instanceName consists of any number of link instructions specifying the name of the parameter interfaceParameterName contained in the simulator interface, and the MDL class interface parameter modelParameterName at a time. At link time it is checked whether the types of the affected parameters are equal. A runtime error message will inform the user of not matching parameter types in which case the link is not performed. It is up to the simulator code, to react to this situation.

LinkMap for Instance instanceName {
   Interface.interfaceParameterName = Model.model_parameter_name;
   // further linkage specifications
}


next up previous contents
Next: 3.6 Prefixing Model Class Names Up: 3. The Model Definition Previous: 3.4 Specifying Default Values
Robert Mlekus
1999-11-14