so-un-bot/Data/ingsw/1122_24/correct.txt

17 lines
273 B
Text
Raw Normal View History

2025-01-17 21:06:51 +01:00
<pre>
class Monitor
InputReal x, y; // plant output
OutputBoolean wy;
Boolean wz;
initial equation
wy = false;
equation
wz = (time > 10) and (x >= 10) and (x <= 20) and ((y < 0.5*x) or (y > 0.7*x)) ;
algorithm
when edge(wz) then
wy := true;
end when;
end Monitor;
2023-06-24 13:42:48 +02:00
</pre>