mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 18:06:15 +01:00
39 lines
No EOL
345 B
Text
39 lines
No EOL
345 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, k.w);
|
|
|
|
connect(k.x, p.u);
|
|
|
|
end System;
|
|
</pre> |