Skip to content

Commit

Permalink
muargus interface TRS, report info
Browse files Browse the repository at this point in the history
  • Loading branch information
pwof authored and pwof committed Nov 2, 2018
1 parent e20af93 commit a884972
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/muargus/HTMLReportWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import muargus.model.RiskSpecification;
import muargus.model.SyntheticDataSpec;
import muargus.model.TableMu;
import muargus.model.TargetSwappingSpec;
import muargus.model.VariableMu;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Expand Down Expand Up @@ -167,6 +168,23 @@ private static Element writeOtherModificationsTable(MetadataMu metadata) {
alpha = alpha + " " + v.getAlpha() + ",";
}
addChildElement(tr, "td", alpha.substring(0, alpha.length() - 1));
} else if (replacement instanceof TargetSwappingSpec){
String Info = "S = {";
for (int index : ((TargetSwappingSpec) replacement).getSimilarIndexes()){
Info = Info + " " + replacement.getOutputVariables().get(index).getName() + ",";
}
Info = Info.substring(0, Info.length()-1) + "} H = {";
for (int index : ((TargetSwappingSpec) replacement).getHierarchyIndexes()){
Info = Info + " " + replacement.getOutputVariables().get(index).getName() + ",";
}
Info = Info.substring(0, Info.length()-1) + "} R = {";
for (int index : ((TargetSwappingSpec) replacement).getRiskIndexes()){
Info = Info + " " + replacement.getOutputVariables().get(index).getName() + ",";
}
Info = Info.substring(0, Info.length()-1) + "} hhID = { " +
replacement.getOutputVariables().get(((TargetSwappingSpec) replacement).getHHID()).getName();

addChildElement(tr, "td", Info + "}");
}
}
}
Expand Down

0 comments on commit a884972

Please # to comment.