|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.gp.GPProblem
examples.grid.mathProblemDistributed.ClientEvolveStrategy
public class ClientEvolveStrategy
Sample implementation of a strategy for evolving a generation on the client.
| Field Summary | |
|---|---|
static java.lang.String |
CVS_REVISION
String containing the CVS revision. |
| Constructor Summary | |
|---|---|
ClientEvolveStrategy(GridConfiguration a_gridConfig)
Default constructor is necessary here as it will be called dynamically! |
|
| Method Summary | |
|---|---|
void |
afterWorkRequestsSent()
|
GPGenotype |
create()
|
Variable |
createVariable(GPConfiguration a_conf)
|
void |
evolve()
|
JGAPRequestGP[] |
generateWorkRequests(JGAPRequestGP m_workReq,
IRequestSplitStrategyGP m_splitStrategy,
java.lang.Object data)
|
CommandGene[][] |
getNodeSets(GPConfiguration conf)
|
void |
initialize(IGridClientMediator a_gc,
GPConfiguration a_config,
IClientFeedbackGP a_clientFeedback)
Called at the very beginning and only once before distributed evolution starts. |
boolean |
isEvolutionFinished(int a_evolutionsDone)
|
void |
onFinished()
Called after evolution has finished. |
void |
resultReceived(JGAPResultGP a_result)
Merge the received results as a basis for the next evolution. |
| Methods inherited from class org.jgap.gp.GPProblem |
|---|
createTree, getGPConfiguration, setGPConfiguration, showTree, showTree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CVS_REVISION
| Constructor Detail |
|---|
public ClientEvolveStrategy(GridConfiguration a_gridConfig)
a_gridConfig - the grid configuration to use| Method Detail |
|---|
public void initialize(IGridClientMediator a_gc,
GPConfiguration a_config,
IClientFeedbackGP a_clientFeedback)
throws java.lang.Exception
initialize in interface IClientEvolveStrategyGPa_gc - GridClient mediatora_config - Configurationa_clientFeedback - IClientFeedback
java.lang.Exception
public void afterWorkRequestsSent()
throws java.lang.Exception
afterWorkRequestsSent in interface IClientEvolveStrategyGPjava.lang.Exceptionpublic boolean isEvolutionFinished(int a_evolutionsDone)
isEvolutionFinished in interface IClientEvolveStrategyGPpublic void onFinished()
onFinished in interface IClientEvolveStrategyGP
public void evolve()
throws java.lang.Exception
evolve in interface IClientEvolveStrategyGPjava.lang.Exception
public JGAPRequestGP[] generateWorkRequests(JGAPRequestGP m_workReq,
IRequestSplitStrategyGP m_splitStrategy,
java.lang.Object data)
throws java.lang.Exception
generateWorkRequests in interface IClientEvolveStrategyGPjava.lang.Exception
public void resultReceived(JGAPResultGP a_result)
throws java.lang.Exception
resultReceived in interface IClientEvolveStrategyGPa_result - JGAPResult
java.lang.Exception
public Variable createVariable(GPConfiguration a_conf)
throws InvalidConfigurationException
InvalidConfigurationException
public CommandGene[][] getNodeSets(GPConfiguration conf)
throws InvalidConfigurationException
InvalidConfigurationException
public GPGenotype create()
throws InvalidConfigurationException
create in class GPProblemInvalidConfigurationException
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||