
freak.core.event.GenerationEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freak-core Show documentation
Show all versions of freak-core Show documentation
Core library of the Free Evolutionary Algorithm Toolkit
/*
* This file is part of FrEAK. For licensing and copyright information
* please see the file COPYING in the root directory of this
* distribution or contact .
*/
package freak.core.event;
/**
* A GenerationEvent is sent by the Schedule after processing of the operator
* graph. Observers, that investigate the population on each generation should
* register on GenerationEvents.
*
* @author Stefan
*/
public class GenerationEvent extends Event {
private int number;
private GenerationEventSource source;
public GenerationEvent(GenerationEventSource source, int number) {
this.source = source;
this.number = number;
}
public GenerationEventSource getSource() {
return source;
}
/**
* Returns the number of the generation, that was created.
*/
public int getNumber() {
return number;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy