T
- The class chromosomes flowing across the stage.public class BreakPoint<T extends Chromosome> extends AbstractStage<T>
process(Population, Population)
method is invocated.
The population isn't alterated so the output population is equals to the input one.Modifier and Type | Class and Description |
---|---|
static class |
BreakPoint.Listener
Abstract class representing a break point listener.
|
biggerIsBetter, fitness, ga
Constructor and Description |
---|
BreakPoint()
Constructs a new BreakPoint stage
|
Modifier and Type | Method and Description |
---|---|
void |
add(BreakPoint.Listener listener)
Adds the specified listener at this break point stage
|
void |
process(Population<T> in,
Population<T> out)
Processes the input population and tranforms it into the output population.
|
void |
remove(BreakPoint.Listener listener)
Removes the specified listener between the ones
|
dispose, getFitness, init, isBiggerBetter, isFitnessChanged, setBiggerIsBetter, setBiggerIsBetter, setFitness, setFitness
public void add(BreakPoint.Listener listener)
listener
- the listener to notify when the break point process time occurs.public void remove(BreakPoint.Listener listener)
listener
- the listener to removepublic void process(Population<T> in, Population<T> out) throws StageException
AbstractStage
process
in class AbstractStage<T extends Chromosome>
in
- the input populationout
- the output populationStageException