Created
April 22, 2013 20:44
-
-
Save ababol/5438380 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
@Override | |
public void notifyViews() { | |
int size = 0; | |
LinkedList<IndividualUI> visualSample = new LinkedList<>(); // liste d'individu à refresh | |
Iterator it = individuals.iterator(); | |
while (it.hasNext() && size < this.observableVolume){ | |
Individual individual = (Individual) it.next(); | |
visualSample.add(individual.getUI()); | |
size++; | |
} | |
super.notifyViews(new PopulationRefreshEvent(this, visualSample)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment