Map<String, ClassWithArgs> monitorClasses = new HashMap<String, ClassWithArgs>();
for (String alias : parsedPigScript.aliases()) {
// Ibis change : start
if (parsedPigScript.operator(alias).equals("LOLoad")) {
// Ibis change : end
monitorClasses.put(alias, new ClassWithArgs(BTInjectTaintMonitorAgent.class));
} else if (alias.equals(traceAlias)) {
monitorClasses.put(alias, new ClassWithArgs(BTMatchTaintMonitorAgent.class, traceTuple));
} else {
monitorClasses.put(alias, new ClassWithArgs(BTPropagateTaintMonitorAgent.class));
}
}
Collection<Tuple> traceResults = (Collection<Tuple>) parsedPigScript.trace(BTCoordinator.class, monitorClasses);
System.out.println("*** TRACE RESULTS:" + traceResults);
}