Ticket #4809: TestInheritanceGUI.mo

File TestInheritanceGUI.mo, 531 bytes (added by Francesco Casella, 7 years ago)
Line 
1model TestInheritanceGUI
2 model M1
3 Modelica.Blocks.Sources.Step step(height = 2, offset = 3, startTime = 4) annotation(
4 Placement(visible = true, transformation(origin = {-16, -4}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
5 equation
6
7 end M1;
8
9 model M2
10 extends TestInheritanceGUI.M1(step.startTime = 5);
11 equation
12
13 end M2;
14
15 model M3
16 extends TestInheritanceGUI.M2;
17 equation
18
19 end M3;
20equation
21
22annotation(
23 uses(Modelica(version = "3.2.2")));end TestInheritanceGUI;