Add new ingsw questions

This commit is contained in:
Marco Realacci 2023-06-24 13:42:48 +02:00
parent 258ee4e2cf
commit 0873165c52
800 changed files with 5605 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<pre>
class Monitor
InputReal x; // plant output
OutputBoolean y;
Boolean z;
initial equation
y = false;
equation
z = (time > 0) and ((x > 0) or (x < 5));
algorithm
when edge(z) then
y := true;
end when;
end Monitor;
</pre>