// to not yet incur cost). Terminate them immediately.
Iterable<Machine> inRequestedState = filter(candidates,
withState(REQUESTED));
Iterator<Machine> requestedStateMachines = inRequestedState.iterator();
while ((excessMachines > 0) && requestedStateMachines.hasNext()) {
toTerminate.add(new ScheduledTermination(requestedStateMachines
.next(), now()));
excessMachines--;
}
// use victim selection policy to pick victims from any remaining