Changeset 0c056fda in OpenModelica for testsuite/openmodelica/instance-API/GetModelInstanceExtends1.mos
- Timestamp:
- 2022-06-30T17:33:05+02:00 (23 months ago)
- Parents:
- 4928c1c
- git-author:
- Per Östlund <perost86@…> (06/29/22 17:06:02)
- git-committer:
- Per Östlund <perost86@…> (06/30/22 17:33:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuite/openmodelica/instance-API/GetModelInstanceExtends1.mos
rda5a55e9 r0c056fda 13 13 model M 14 14 Real y; 15 extends A ;15 extends A(x = 1) annotation(IconMap(extent = {{-100, -100}, {100, 100}})); 16 16 Real z; 17 17 end M; 18 18 "); 19 getErrorString(); 19 20 20 21 getModelInstance(M, prettyPrint=true); … … 22 23 // Result: 23 24 // true 25 // "" 24 26 // "{ 25 27 // \"name\": \"M\", … … 27 29 // \"extends\": [ 28 30 // { 29 // \"name\": \"A\", 30 // \"restriction\": \"model\", 31 // \"components\": [ 32 // { 33 // \"name\": \"x\", 34 // \"type\": \"Real\", 35 // \"prefixes\": { 31 // \"modifiers\": { 32 // \"x\": { 33 // \"value\": \"1\" 34 // } 35 // }, 36 // \"annotation\": { 37 // \"IconMap\": { 38 // \"extent\": [ 39 // [ 40 // -100, 41 // -100 42 // ], 43 // [ 44 // 100, 45 // 100 46 // ] 47 // ] 48 // } 49 // }, 50 // \"baseClass\": { 51 // \"name\": \"A\", 52 // \"restriction\": \"model\", 53 // \"components\": [ 54 // { 55 // \"name\": \"x\", 56 // \"type\": \"Real\", 57 // \"value\": { 58 // \"binding\": 1 59 // }, 60 // \"prefixes\": { 36 61 // 62 // } 37 63 // } 38 // }39 // ]64 // ] 65 // } 40 66 // } 41 67 // ],
Note: See TracChangeset
for help on using the changeset viewer.