117118119120121122123124125126127
boolean keepgoing = true; EcState state = EcState.defaultDestination(); for (EcState s : metric.waypoints) { if (keepgoing) state.union(s); if (!s.isSatisfied(c)) keepgoing = false; else score += 500.0; }
125126127128129130131132133134135
else score += 500.0; } if (keepgoing) { state.union(metric); score = augmentScore(c, metric, score, false); } else score = augmentScore(c, metric, score, false);
171172173174175176177178179180181
boolean keepgoing = true; EcState state = EcState.defaultDestination(); for (EcState s : metric.waypoints) { if (keepgoing) { state.union(s); } if (!s.isSatisfied(candidate)) { keepgoing = false; } }
178179180181182183184185186187188
if (!s.isSatisfied(candidate)) { keepgoing = false; } } if (keepgoing) { state.union(metric); } score = augmentScore(candidate, state, score, false); if (state.isSatisfied(candidate)) {//user options satisfied