|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.core.GPPoolSelection<TYPE>
public class GPPoolSelection<TYPE>
This class is responsible for controlling the selection of a breeding pool.
Note that as with the other core classes, no actual (selection) operation is
performed by this class. Rather, it provides the infrastructure around the
operation, and calls the implementation of PoolSelector which
will perform the actual operation.
PoolSelector,
TournamentSelector| Constructor Summary | |
|---|---|
GPPoolSelection(GPModel<TYPE> model)
Constructs an instance of GPPoolSelection which will setup the breeding pool selection operation. |
|
| Method Summary | |
|---|---|
java.util.List<CandidateProgram<TYPE>> |
getPool(java.util.List<CandidateProgram<TYPE>> pop)
|
int |
getReversions()
Number of times the selected pool was rejected and re-selected. |
void |
onGenerationStart()
Called after each generation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GPPoolSelection(GPModel<TYPE> model)
PoolSelector returned
by the models getPoolSelector() method.
model - the GPModel which defines the PoolSelector operator and
life cycle listener.PoolSelector| Method Detail |
|---|
public java.util.List<CandidateProgram<TYPE>> getPool(java.util.List<CandidateProgram<TYPE>> pop)
pop -
public int getReversions()
After a breeding pool is selected, the controlling model's life cycle
listener is requested to confirm the pool by a call to
onPoolSelection(). This gives the model total control over
the breeding pool allowing manipulation of it's contents before
proceeding. If onPoolSelection() returns null
then the pool of programs is discarded and a new pool is formed. The
number of times the pool is reverted before being accepted is available
through a call to this method.
public void onGenerationStart()
onGenerationStart in interface GenerationListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||