for (Enumeration e = task.getPreferences(); e.hasMoreElements(); ix++) { Preference pref = (Preference) e.nextElement(); ScoringFunction sf = pref.getScoringFunction(); AspectValue av = ru[ix]; double thisScore = sf.getScore(av); if (thisScore >= ScoringFunction.HIGH_THRESHOLD) return false;
synchronized (task) { for (Enumeration e = task.getPreferences(); e.hasMoreElements(); ix++) { Preference pref = (Preference) e.nextElement(); ScoringFunction sf = pref.getScoringFunction(); AspectValue av = ru[ix]; double thisScore = sf.getScore(av); if (thisScore >= ScoringFunction.HIGH_THRESHOLD) return false; }
  private boolean isSuccess(AspectValue[] ru) {      int ix = 0;    for (Enumeration e = task.getPreferences(); e.hasMoreElements(); ix++) {      Preference pref = (Preference) e.nextElement();      ScoringFunction sf = pref.getScoringFunction();      AspectValue av = ru[ix];      double thisScore = sf.getScore(av);      if (thisScore >= ScoringFunction.HIGH_THRESHOLD) return false;    }    return true;  }