|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexamples.grid.evolutionDistributed.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()
Default constructor is necessary here as it will be called dynamically! |
Method Summary | |
---|---|
void |
afterWorkRequestsSent()
|
void |
evolve()
|
JGAPRequest[] |
generateWorkRequests(JGAPRequest m_workReq,
IRequestSplitStrategy m_splitStrategy,
java.lang.Object data)
|
void |
initialize(GridClient a_gc,
Configuration a_config,
IClientFeedback 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(JGAPResult a_result)
Merge the received results as a basis for the next evolution. |
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()
Method Detail |
---|
public void initialize(GridClient a_gc, Configuration a_config, IClientFeedback a_clientFeedback) throws java.lang.Exception
initialize
in interface IClientEvolveStrategy
a_gc
- GridClienta_config
- Configurationa_clientFeedback
- IClientFeedback
java.lang.Exception
public void afterWorkRequestsSent() throws java.lang.Exception
afterWorkRequestsSent
in interface IClientEvolveStrategy
java.lang.Exception
public boolean isEvolutionFinished(int a_evolutionsDone)
isEvolutionFinished
in interface IClientEvolveStrategy
public void onFinished()
onFinished
in interface IClientEvolveStrategy
public void evolve() throws java.lang.Exception
evolve
in interface IClientEvolveStrategy
java.lang.Exception
public JGAPRequest[] generateWorkRequests(JGAPRequest m_workReq, IRequestSplitStrategy m_splitStrategy, java.lang.Object data) throws java.lang.Exception
generateWorkRequests
in interface IClientEvolveStrategy
java.lang.Exception
public void resultReceived(JGAPResult a_result) throws java.lang.Exception
resultReceived
in interface IClientEvolveStrategy
a_result
- JGAPResult
java.lang.Exception
|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |