so-un-bot/Data/ingsw/0210_43/correct.txt

16 lines
250 B
Text
Raw Normal View History

2025-01-17 21:06:51 +01:00
<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;
2023-06-24 13:42:48 +02:00
</pre>