Skip to content

Instantly share code, notes, and snippets.

@ababol
Created April 22, 2013 20:44
Show Gist options
  • Save ababol/5438380 to your computer and use it in GitHub Desktop.
Save ababol/5438380 to your computer and use it in GitHub Desktop.
@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