mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-07 00:59:37 +02:00
domande matteo
This commit is contained in:
parent
ad0bc91c7d
commit
a82b455758
338 changed files with 1469 additions and 0 deletions
14
Ingegneria del Software/0621_0/correct.txt
Normal file
14
Ingegneria del Software/0621_0/correct.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
class Monitor
|
||||
|
||||
InputReal x, y, z; // plant output
|
||||
OutputBoolean wy;
|
||||
Boolean wz;
|
||||
initial equation
|
||||
wy = false;
|
||||
equation
|
||||
wz = (time > 50) and (x < 0.6*y) and (x + y <= 0.3*z);
|
||||
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
|
4
Ingegneria del Software/0621_0/quest.txt
Normal file
4
Ingegneria del Software/0621_0/quest.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Si consideri il seguente requisito:
|
||||
RQ: Dopo 50 unità di tempo dall'inizio dell'esecuzione vale la seguente proprietà:
|
||||
se la variabile x è minore del 60% della variabile y allora la somma di x ed y è maggiore del 30% della variabile z
|
||||
Quale dei seguenti monitor meglio descrive il requisito RQ ?
|
3
Ingegneria del Software/0621_0/quest.txt:Zone.Identifier
Normal file
3
Ingegneria del Software/0621_0/quest.txt:Zone.Identifier
Normal file
|
@ -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_0/wrong0.txt
Normal file
14
Ingegneria del Software/0621_0/wrong0.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
class Monitor
|
||||
|
||||
InputReal x, y, z; // plant output
|
||||
OutputBoolean wy;
|
||||
Boolean wz;
|
||||
initial equation
|
||||
wy = false;
|
||||
equation
|
||||
wz = (time > 50) and (x >= 0.6*y) and (x + y <= 0.3*z);
|
||||
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
|
14
Ingegneria del Software/0621_0/wrong1.txt
Normal file
14
Ingegneria del Software/0621_0/wrong1.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
class Monitor
|
||||
|
||||
InputReal x, y, z; // plant output
|
||||
OutputBoolean wy;
|
||||
Boolean wz;
|
||||
initial equation
|
||||
wy = false;
|
||||
equation
|
||||
wz = (time > 50) and (x < 0.6*y) and (x + y > 0.3*z);
|
||||
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