// add names of tools as comment
value.setComment(toCommaSeparated(resultSet.getColResults("swname"))
+ "; - according to miniREEF/P2 knowledge base");
listener.updateStatus("MiniREEF evaluated " + measureId);
} else if (MeasureConstants.FORMAT_IPR_PROTECTION.equals(measureId)) {
scale = new OrdinalScale();
if (resultSet.size() > 0) {
// e.g. open = false, comment: "Format is encumbered by IPR"
String comment = "";
String valueStr = "";
for (int i = 0; i < resultSet.size(); i++) {
List<String> vals = resultSet.getRow(i);
comment = comment + vals.get(0) + "\n";
String type = vals.get(1);
if (P2_RESOURCE_FORMAT_LICENSE_RIGHTS_IPR_PROTECTED.equals(type)) {
valueStr = "ipr_protected";
comment = comment + valueStr;
} else if (P2_RESOURCE_FORMAT_LICENSE_RIGHTS_PROPRIETARY.equals(type)) {
valueStr = "proprietary";
comment = comment + valueStr;
} else if (P2_RESOURCE_FORMAT_LICENSE_RIGHTS_OPEN.equals(type)) {
valueStr = "open";
comment = comment + valueStr;
}
}
if (resultSet.size() > 1) {
comment = comment
+ ": more than one right category applies to this format, check for reason of this conflict.\n";
}
value = scale.createValue();
value.parse(valueStr);
value.setComment(comment + ": according to MiniREEF/P2 knowledge base");
listener.updateStatus("MiniREEF evaluated " + measureId);
}
listener.updateStatus("P2 does not contain enough information to evaluate " + measureId
+ " for this format.");
} else if ((MeasureConstants.FORMAT_COMPLEXITY.equals(measureId))) {
// || (MeasureConstants.FORMAT_DISCLOSURE.equals(measureId))
// FIXME: the results from p2 have to be matched to the defined
// measures
// || (MeasureConstants.FORMAT_UBIQUITY.equals(measureId))
// ||
// (MeasureConstants.FORMAT_DOCUMENTATION_QUALITY.equals(measureId))
// || (MeasureConstants.FORMAT_STABILITY.equals(measureId))
// || (MeasureConstants.FORMAT_LICENSE.equals(measureId))) {
scale = new OrdinalScale();
if (resultSet.size() > 0) {
String text = resultSet.getRow(0).get(0);
if (text.trim().length() > 0) {
value = scale.createValue();