mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 18:06:15 +01:00
40 lines
346 B
Text
40 lines
346 B
Text
|
<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>
|