Ticket #4674: ParameterExtendsTest.mos

File ParameterExtendsTest.mos, 927 bytes (added by Niklas Worschech, 7 years ago)
Line 
1loadFile("ParameterExtendsTest.mo");
2getErrorString();
3classes:= getInheritedClasses(ParameterExtendsTest.SpecialRecord);getErrorString();
4for i in 1:size(classes,1) loop
5 params := getParameterNames(classes[i]);getErrorString();
6 for j in 1:size(params,1) loop
7 print("parameter = "+params[j]+ " value=" +getParameterValue(classes[i],params[j]) +"\n");
8 print("new value = " + getExtendsModifierValue(ParameterExtendsTest.SpecialRecord,classes[i],params[j]));getErrorString();
9 end for;
10end for;
11params:= getParameterNames(ParameterExtendsTest.SpecialRecord);getErrorString();
12for i in 1:size(params,1) loop
13 print("parameter = "+params[i]+ " value=" +getParameterValue(ParameterExtendsTest.SpecialRecord,params[i]) +"\n");
14 print("new value = " + getExtendsModifierValue(ParameterExtendsTest.SpecialRecord,ParameterExtendsTest.BaseRecord,params[i]));getErrorString();
15end for;
16getErrorString();