so-un-bot/Ingegneria del Software/0621_32/quest.txt

17 lines
382 B
Text
Raw Normal View History

2022-11-14 16:15:16 +01:00
Si consideri il monitor seguente che ritorna true appena i requisiti per il sistema monitorato sono violati.
<html>
block Monitor
input Real x;
output Boolean y;
Boolean w;
initial equation
y = false;
equation
w = ((x < 0) or (x > 5));
algorithm
when edge(w) then
y := true;
end when;
end Monitor;
</html>
Quale delle seguenti affermazioni meglio descrive il requisito monitorato.