mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-13 15:05:22 +01:00
16 lines
266 B
Text
16 lines
266 B
Text
<pre>
|
|
class Monitor
|
|
|
|
InputReal x, y, z; // plant output
|
|
OutputBoolean wy;
|
|
Boolean wz;
|
|
initial equation
|
|
wy = false;
|
|
equation
|
|
wz = (time > 50) and (x < 0.6*y) and (x + y > 0.3*z);
|
|
algorithm
|
|
when edge(wz) then
|
|
wy := true;
|
|
end when;
|
|
end Monitor;
|
|
</pre>
|