Created
May 29, 2014 14:02
-
-
Save neugen86/8f0e1d65343a147d4d3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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