so-un-bot/Ingegneria del Software/0721_31/quest.txt

17 lines
397 B
Text
Raw Normal View History

2022-11-15 14:27:16 +01:00
Si consideri il monitor seguente che ritorna true appena il sistema viola il requisito monitorato.
2022-11-16 17:56:16 +01:00
<pre>
2022-11-15 14:27:16 +01:00
block Monitor
input Real x;
output Boolean y;
Boolean w;
initial equation
y = false;
equation
w = ((x < 1) or (x > 4)) and ((x < 15) or (x > 20));
algorithm
when edge(w) then
y := true;
end when;
end Monitor;
2022-11-16 17:56:16 +01:00
</pre>
2022-11-15 14:27:16 +01:00
Quale delle seguenti affermazioni meglio descrive il requisito monitorato?