so-un-bot/Data/Questions/ingsw/1122_24/wrong 1.txt

19 lines
295 B
Text
Raw Normal View History

2022-11-06 17:27:39 +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) and (y <= 0.7*x) ;
algorithm
when edge(wz) then
wy := true;
end when;
end Monitor;
2022-11-02 09:13:43 +01:00
</pre>