so-un-bot/Data/Questions/ingsw/0621_17/wrong1.txt

13 lines
215 B
Text
Raw Normal View History

2022-11-14 16:30:34 +01:00
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;