mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 18:06:15 +01:00
16 lines
244 B
Text
16 lines
244 B
Text
|
<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>
|