so-un-bot/Ingegneria del Software - Domande duplicate/28/wrong 2.txt

15 lines
227 B
Text
Raw Normal View History

2023-04-12 03:06:17 +02:00
<pre>
class Monitor
InputReal x, y;
OutputBoolean wy;
Boolean wz;
initial equation
wy = false;
equation
wz = (time > 60) and (delay(x, 10) > 0) and (y > 0);
algorithm
when edge(wz) then
wy := true;
end when;
end Monitor;
</pre>