mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-07 01:39:37 +02:00
domande matteo
This commit is contained in:
parent
ad0bc91c7d
commit
a82b455758
338 changed files with 1469 additions and 0 deletions
13
Ingegneria del Software/0621_17/correct.txt
Normal file
13
Ingegneria del Software/0621_17/correct.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
class Monitor
|
||||
InputReal x, y;
|
||||
OutputBoolean wy;
|
||||
Boolean wz;
|
||||
initial equation
|
||||
wy = false;
|
||||
equation
|
||||
wz = (time > 60) and (delay(x, 10) > 0) and (y <= 0);
|
||||
algorithm
|
||||
when edge(wz) then
|
||||
wy := true;
|
||||
end when;
|
||||
end Monitor;
|
|
@ -0,0 +1,3 @@
|
|||
[ZoneTransfer]
|
||||
ZoneId=3
|
||||
ReferrerUrl=C:\Users\mreal\Downloads\Telegram Desktop\Domande 09_06_2021 (2).zip
|
5
Ingegneria del Software/0621_17/quest.txt
Normal file
5
Ingegneria del Software/0621_17/quest.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
Si consideri il seguente requisito:
|
||||
RQ: Dopo 60 unità di tempo dall'inizio dell'esecuzione vale la seguente proprietà:
|
||||
se 10 unità di tempo nel passato era stata richiesta una risorsa (variabile x positiva) allora ora è concesso l'accesso alla risorsa (variabile y positiva)
|
||||
Tenendo presente che, al tempo time, delay(z, w) ritorna 0 se time < w e ritorna il valore che z aveva al tempo (time - w), se time >= w.
|
||||
Quale dei seguenti monitor meglio descrive il requisito RQ ?
|
|
@ -0,0 +1,3 @@
|
|||
[ZoneTransfer]
|
||||
ZoneId=3
|
||||
ReferrerUrl=C:\Users\mreal\Downloads\Telegram Desktop\Domande 09_06_2021 (2).zip
|
14
Ingegneria del Software/0621_17/wrong0.txt
Normal file
14
Ingegneria del Software/0621_17/wrong0.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
class Monitor
|
||||
InputReal x, y;
|
||||
OutputBoolean wy;
|
||||
Boolean wz;
|
||||
initial equation
|
||||
wy = false;
|
||||
equation
|
||||
wz = (time > 60) or (delay(x, 10) > 0) or (y <= 0);
|
||||
|
||||
algorithm
|
||||
when edge(wz) then
|
||||
wy := true;
|
||||
end when;
|
||||
end Monitor;
|
|
@ -0,0 +1,3 @@
|
|||
[ZoneTransfer]
|
||||
ZoneId=3
|
||||
ReferrerUrl=C:\Users\mreal\Downloads\Telegram Desktop\Domande 09_06_2021 (2).zip
|
13
Ingegneria del Software/0621_17/wrong1.txt
Normal file
13
Ingegneria del Software/0621_17/wrong1.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
class Monitor
|
||||
InputReal x, y;
|
||||
OutputBoolean wy;
|
||||
Boolean wz;
|
||||
initial equation
|
||||
wy = false;
|
||||
equation
|
||||
wz = (time > 60) and (delay(x, 10) > 0) and (y > 0);
|
||||
algorithm
|
||||
when edge(wz) then
|
||||
wy := true;
|
||||
end when;
|
||||
end Monitor;
|
|
@ -0,0 +1,3 @@
|
|||
[ZoneTransfer]
|
||||
ZoneId=3
|
||||
ReferrerUrl=C:\Users\mreal\Downloads\Telegram Desktop\Domande 09_06_2021 (2).zip
|
Loading…
Add table
Add a link
Reference in a new issue