Q-Rapids
Quality-aware rapid software development
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 732253.
Table 17. class QRGenerator (QR Generator API)
Method and result |
Description |
QRGenerator (String urlBase) |
Class constructor, it requires a String defining the base URL where PABRE is deployed (urlBase parameter). |
existsQRPattern (Alert alert) returns Boolean |
This method indicates whether or not the alert passed as a parameter has an associated Quality Requirement pattern. |
generateQRs (Alert alert) returns QualityRequirementPattern[] |
This method returns the list of Quality Requirement patterns associated with the alert passed as a parameter. |
The following tables contain the data types used to transfer data with the library.
Table 18. Alert DTO (QR Generator API)
Attribute |
Type |
Id_element |
String |
Name |
String |
Type |
Type |
Value |
Float |
Threshold |
Float |
Category |
String |
Artefacts |
Object[] |
The enumeration values for the type attribute in Alert DTO are: METRIC, FACTOR, and STRATEGIC_INDICATOR.
Table 20. QualityRequirementPattern DTO (QR Generator API)
Attribute |
Type |
Name |
String |
comments |
String |
description |
String |
Goal |
String |
Forms |
Form[] |
costFunction |
String |
Table 19. Form DTO (QR Generator API)
Attribute |
Type |
Name |
String |
description |
String |
comments |
String |
fixedPart |
FixedPart |
Table 22. FixedPart DTO (QR Generator API)
Attribute |
Type |
formText |
String |