next up previous contents
Next: 3.8 Compiling MDL Classes Up: 3. The Model Definition Previous: 3.6 Prefixing Model Class Names


3.7 Immediate MDL Class Instantiation and Evaluation

The flexibility of applications utilizing the Algorithm Library can be improved by initiating the instantiation and evaluation of MDL in form of an MDL command right at parse time of the pertinent evaluate commands. For that purpose MDL supports the following commands:

instantiate instanceName = className;
evaluate    instanceName;
call        instanceName.methodName;

The instantiate statement generates an instance of the MDL class className with the instance name instanceName. The method methodName of the MDL class instance instanceName is evaluated by the according call statement. The evaluate statement is a short cut for a conforming call command with the method name evaluate.



Robert Mlekus
1999-11-14