T
- The type of entity being evolved.public class EvolutionLogger<T> extends java.lang.Object implements IslandEvolutionObserver<T>
Constructor and Description |
---|
EvolutionLogger(org.processmining.framework.plugin.PluginContext context,
CentralRegistry registry) |
EvolutionLogger(org.processmining.framework.plugin.PluginContext context,
CentralRegistry registry,
boolean fileLoggingEnabled) |
EvolutionLogger(org.processmining.framework.plugin.PluginContext context,
CentralRegistry registry,
boolean fileLoggingEnabled,
int logModulo) |
Modifier and Type | Method and Description |
---|---|
void |
closeFile() |
void |
disableFileLogging() |
double |
getWorstFitnessInLastPopulation() |
void |
islandPopulationUpdate(int islandNr,
PopulationData<? extends T> data)
Method called to notify the listener of the state of the population of an individual
island.
|
void |
populationUpdate(PopulationData<? extends T> data)
Invoked when the state of the population has changed (typically
at the end of a generation).
|
void |
setProgressLevels(int levels)
Updates the progress of the context such that it scales correctly to the
maximum number of steps
|
public EvolutionLogger(org.processmining.framework.plugin.PluginContext context, CentralRegistry registry)
public EvolutionLogger(org.processmining.framework.plugin.PluginContext context, CentralRegistry registry, boolean fileLoggingEnabled)
public EvolutionLogger(org.processmining.framework.plugin.PluginContext context, CentralRegistry registry, boolean fileLoggingEnabled, int logModulo)
public void disableFileLogging()
public void populationUpdate(PopulationData<? extends T> data)
EvolutionObserver
populationUpdate
in interface EvolutionObserver<T>
data
- Statistics about the state of the current generation.public void islandPopulationUpdate(int islandNr, PopulationData<? extends T> data)
IslandEvolutionObserver
islandPopulationUpdate
in interface IslandEvolutionObserver<T>
islandNr
- Identifies which individual island the data comes from.
Indices start at zero and are sequential.data
- The latest data from the evolution on the specified island.public void closeFile()
public double getWorstFitnessInLastPopulation()
public void setProgressLevels(int levels)
levels
-