}
}
private void performEdit() {
EditNEATPopulationDialog dialog = new EditNEATPopulationDialog();
dialog.getOldAgePenalty().setValue(this.population.getOldAgePenalty());
dialog.getOldAgeThreshold().setValue(
this.population.getOldAgeThreshold());
dialog.getPopulationSize()
.setValue(this.population.getPopulationSize());
dialog.getSurvivalRate().setValue(this.population.getSurvivalRate());
dialog.getYoungBonusAgeThreshold().setValue(
this.population.getYoungBonusAgeThreshold());
dialog.getYoungScoreBonus().setValue(
this.population.getYoungScoreBonus());
dialog.setNeatActivationFunction(this.population
.getNeatActivationFunction());
dialog.setOutputActivationFunction(this.population
.getOutputActivationFunction());
if (dialog.process()) {
this.population.setOldAgePenalty(dialog.getOldAgePenalty()
.getValue());
this.population.setOldAgeThreshold(dialog.getOldAgeThreshold()
.getValue());
this.population.setPopulationSize(dialog.getPopulationSize()
.getValue());
this.population
.setSurvivalRate(dialog.getSurvivalRate().getValue());
this.population.setYoungBonusAgeThreshhold(dialog
.getYoungBonusAgeThreshold().getValue());
this.population.setYoungScoreBonus(dialog.getYoungScoreBonus()
.getValue());
this.population.setNeatActivationFunction(dialog
.getNeatActivationFunction());
this.population.setOutputActivationFunction(dialog
.getOutputActivationFunction());
this.pi.repaint();
}
}