1 | loadFile("ParameterExtendsTest.mo");
|
---|
2 | getErrorString();
|
---|
3 | classes:= getInheritedClasses(ParameterExtendsTest.SpecialRecord);getErrorString();
|
---|
4 | for 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;
|
---|
10 | end for;
|
---|
11 | params:= getParameterNames(ParameterExtendsTest.SpecialRecord);getErrorString();
|
---|
12 | for 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();
|
---|
15 | end for;
|
---|
16 | getErrorString();
|
---|