mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 21:19: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
15
Data/ingsw/0621_36/correct.txt
Normal file
15
Data/ingsw/0621_36/correct.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
class Monitor
|
||||
|
||||
InputReal x; // plant output
|
||||
OutputBoolean y;
|
||||
|
||||
Boolean z;
|
||||
initial equation
|
||||
y = false;
|
||||
equation
|
||||
z = (time > 0) and ((x > 5) or (x < 0));
|
||||
algorithm
|
||||
when edge(z) then
|
||||
y := true;
|
||||
end when;
|
||||
end Monitor;
|
3
Data/ingsw/0621_36/quest.txt
Normal file
3
Data/ingsw/0621_36/quest.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Si consideri il seguente requisito:
|
||||
RQ: Durante l'esecuzione del programma (cioè per tutti gli istanti di tempo positivi) la variabile x è sempre nell'intervallo [0, 5].
|
||||
Quale dei seguenti monitor meglio descrive il requisito RQ ?
|
15
Data/ingsw/0621_36/wrong0.txt
Normal file
15
Data/ingsw/0621_36/wrong0.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
class Monitor
|
||||
|
||||
InputReal x; // plant output
|
||||
OutputBoolean y;
|
||||
|
||||
Boolean z;
|
||||
initial equation
|
||||
y = false;
|
||||
equation
|
||||
z = (time > 0) and (x > 0) and (x < 5);
|
||||
algorithm
|
||||
when edge(z) then
|
||||
y := true;
|
||||
end when;
|
||||
end Monitor;
|
15
Data/ingsw/0621_36/wrong1.txt
Normal file
15
Data/ingsw/0621_36/wrong1.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
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;
|
Loading…
Add table
Add a link
Reference in a new issue