so-un-bot/Data/Questions/ingsw/0321_16/wrong 1.txt

40 lines
346 B
Text
Raw Normal View History

2022-11-14 14:50:34 +01:00
<pre>
connector InputInteger = input Integer;
connector OutputInteger = output Integer;
block Controller
InputInteger x;
OutputInteger Integer w;
...
end Controller;
block Plant
InputInteger u;
OutputInteger y;
...
end Plant;
class System
Controller k;
Plant p;
equation
connect(p.y, p.u);
connect(k.w, k.u);
end System;
</pre>