mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 17:46:13 +01:00
17 lines
378 B
Text
17 lines
378 B
Text
|
Si consideri il monitor seguente che ritorna true appena i requisiti per il sistema monitorato sono violati.
|
||
|
<pre>
|
||
|
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;
|
||
|
</pre>
|
||
|
Quale delle seguenti affermazioni meglio descrive il requisito monitorato.
|