//set potential culprits to be intersection of
//new potential culprits and old.
List newPCs = new ArrayList();
for (int ii = 0; ii < this.pcs.size(); ii++) {
ChanceAtFault pc = (ChanceAtFault) this.pcs.get(ii);
for (int jj = 0; jj < otherPCs.length; jj++) {
ChanceAtFault otherPC = otherPCs[jj];
if (pc.getConverter() == otherPC.getConverter()
&& otherPC.getChanceAtFault() > 0.0f) {
ChanceAtFault newPC = new ChanceAtFault(pc
.getFailedFilePass(), pc.getConverter(), pc
.getChanceAtFault()
+ otherPC.getChanceAtFault());
newPCs.add(pc);
break;
}
}
}
this.pcs = newPCs;
} else {
//add all chance at faults > 0.0f to potential culprit list
List newPCs = new ArrayList();
for (int ii = 0; ii < otherPCs.length; ii++) {
ChanceAtFault pc = (ChanceAtFault) otherPCs[ii];
if (pc.getChanceAtFault() > 0.0f) {
newPCs.add(pc);
}
}
this.pcs = newPCs;