Skip to content

Instantly share code, notes, and snippets.

@neugen86
Created May 29, 2014 14:02
Show Gist options
  • Save neugen86/8f0e1d65343a147d4d3a to your computer and use it in GitHub Desktop.
Save neugen86/8f0e1d65343a147d4d3a to your computer and use it in GitHub Desktop.
def moagents = (swarm as PreSchedulingSwarm).swarmContext.preschedulingStorage.movingObjectAgents;
moagents.each {
swarm.parallelExecutionService.submit(normalizeClosure(it));
}
while (normalizeCounter.get() < moagents.size()) {}
changed |= normalizeOccured.get()
moagents.each {
swarm.parallelExecutionService.submit(closeUpClosure(it, true));
}
while (closeUpCounter.get() < moagents.size()){}
changed |= closeUpOccured.get();
changed |= PreschedulerUtils.closeUpAllStations(swarm.swarmContext);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment