Iterator<BenchmarkBean> iter = expBean.getExperimentBenchmarkBeans().iterator();
log.debug("Found # of ExperimentOverall BMGS: " + expBean.getExperimentBenchmarkBeans().size());
boolean bError = false;
while (iter.hasNext()) {
BenchmarkBean bmb = iter.next();
BenchmarkGoal bmg;
if (bmb.getSelected()) {
// get the bmgoal from the evaluation data
bmg = exp.getExperimentEvaluation().getEvaluatedExperimentBenchmarkGoal(bmb.getID());
expBMgoals.add(bmg);
/* FIXME ANJ Clean this up:
try {
//update the bmg with the provided bean's data
helper_addBMBSettingsToBMGoal(bmb,bmg);
expBMgoals.add(bmg);
log.debug("updating bmg's target:" + bmg.getTargetValue());
} catch (InvalidInputException e) {
//create an ErrorMessage
FacesMessage fmsg = new FacesMessage();
if(bmg!=null){
fmsg.setSummary("Validation of "+bmg.getName()+" failed");
fmsg.setDetail("Validation of "+bmg.getName()+" failed");
}
else{
fmsg.setDetail("source/target value of a given file-Benchmarkgoal is not valid!"+e.toString());
fmsg.setSummary("source/target value of a given file-Benchmarkgoal is not valid!");
}
fmsg.setSeverity(FacesMessage.SEVERITY_ERROR);
FacesContext ctx = FacesContext.getCurrentInstance();
ctx.addMessage("bmTable",fmsg);
log.error(e.toString());
//set error true: all error messages are collected and then "failure" is returned
bError = true;
}
*/
}
}
//3. fill the file benchmark goals - used for evaluation of every input file
boolean bError2 = false;
Map<String,BenchmarkBean> mBMBs = expBean.getFileBenchmarkBeans();
Map<URI,List<BenchmarkGoal>> mFileBMGs = new HashMap<URI,List<BenchmarkGoal>>();
Iterator<String> itLocalInputFileRefs = expBean.getExperimentInputData().values().iterator();
DataHandler dh = new DataHandlerImpl();
//iterate over every input file and add update their evaluation
BenchmarkGoal bmg =null;
try {
while(itLocalInputFileRefs.hasNext()){
String localInputFileRef = itLocalInputFileRefs.next();
URI inputURI = dh.get(localInputFileRef).getDownloadUri();
List<BenchmarkGoal> lbmgs = new ArrayList<BenchmarkGoal>();