mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 18:59:37 +02:00
move legacy code to separate branch
This commit is contained in:
parent
68a30c8ee6
commit
11b4c48c3a
3528 changed files with 14477 additions and 53258 deletions
17
Data/Questions/ingsw/1122_21/correct.txt
Normal file
17
Data/Questions/ingsw/1122_21/correct.txt
Normal 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 >= 5) or (x <= 0)) and ((x >= 15) or (x <= 10)) ;
|
||||
algorithm
|
||||
when edge(z) then
|
||||
y := true;
|
||||
end when;
|
||||
end Monitor;
|
||||
</pre>
|
5
Data/Questions/ingsw/1122_21/quest.txt
Normal file
5
Data/Questions/ingsw/1122_21/quest.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
Si consideri il seguente requisito:
|
||||
|
||||
RQ1: Durante l'esecuzione del programma (cioè per tutti gli istanti di tempo positivi) la variabile x è sempre nell'intervallo [0, 5] oppure [10, 15]
|
||||
|
||||
Quale dei seguenti monitor meglio descrive il requisito RQ1 ?
|
19
Data/Questions/ingsw/1122_21/wrong 1.txt
Normal file
19
Data/Questions/ingsw/1122_21/wrong 1.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
<pre>
|
||||
class Monitor
|
||||
|
||||
InputReal x; // plant output
|
||||
OutputBoolean y;
|
||||
|
||||
Boolean z;
|
||||
|
||||
initial equation
|
||||
|
||||
y = false;
|
||||
equation
|
||||
z = (time > 0) and ( ((x >= 0) and (x <= 5)) or ((x >= 10) and (x <= 15)) );
|
||||
algorithm
|
||||
when edge(z) then
|
||||
y := true;
|
||||
end when;
|
||||
end Monitor;
|
||||
</pre>
|
19
Data/Questions/ingsw/1122_21/wrong 2.txt
Normal file
19
Data/Questions/ingsw/1122_21/wrong 2.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
<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)) and ((x >= 10) or (x <= 15)) );
|
||||
algorithm
|
||||
when edge(z) then
|
||||
y := true;
|
||||
end when;
|
||||
end Monitor;
|
||||
</pre>
|
Loading…
Add table
Add a link
Reference in a new issue