|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMasterProblemServer
Interface implemented by both the ECJ master/slave problem and the ORIGIN Frontier task distributed problem classes.
| Field Summary | |
|---|---|
static java.lang.String |
P_EVALCOMPRESSION
|
static java.lang.String |
P_EVALMASTERPORT
|
static java.lang.String |
P_MAXIMUMACTIVESLAVES
|
static java.lang.String |
P_MAXIMUMNUMBEROFCONCURRENTJOBSPERSLAVE
|
| Method Summary | |
|---|---|
boolean |
evaluatedIndividualAvailable()
|
QueueIndividual |
getEvaluatedIndividual(EvolutionState state)
|
int |
numAvailableSlaves()
Returns the number of available slave (not busy) |
QueueIndividual |
pollNextEvaluatedIndividual(EvolutionState state,
long timeoutInMilliseconds)
Polls for the next evaluated individual. |
void |
scheduleJobForEvaluation(EvolutionState state,
Job ed)
Schedules a remote evaluation. |
void |
setJobSize(int jobSize)
A hint as to the maximum number of jobs per slave task. |
void |
setupServerFromDatabase(EvolutionState state)
Initializes the server |
void |
shutdown()
Shut down the server. |
java.lang.Thread |
spawnThread()
Creates and starts a background thread for this server. |
void |
waitForAllSlavesToFinishEvaluating(EvolutionState state)
Wait for remote evaluation to complete. |
Individual |
waitForIndividual(EvolutionState state)
Wait for one individual to complete evaluation. |
| Field Detail |
|---|
static final java.lang.String P_EVALMASTERPORT
static final java.lang.String P_EVALCOMPRESSION
static final java.lang.String P_MAXIMUMNUMBEROFCONCURRENTJOBSPERSLAVE
static final java.lang.String P_MAXIMUMACTIVESLAVES
| Method Detail |
|---|
void setupServerFromDatabase(EvolutionState state)
state - The evolution statejava.lang.Thread spawnThread()
int numAvailableSlaves()
void setJobSize(int jobSize)
boolean evaluatedIndividualAvailable()
void shutdown()
throws java.lang.InterruptedException
java.lang.InterruptedException
void scheduleJobForEvaluation(EvolutionState state,
Job ed)
state - Evolution stateed - Evaluation data for one individual or groupIndividual waitForIndividual(EvolutionState state)
QueueIndividual getEvaluatedIndividual(EvolutionState state)
QueueIndividual pollNextEvaluatedIndividual(EvolutionState state,
long timeoutInMilliseconds)
state - timeoutInMilliseconds - Timeout for individual to be received
QueueIndividual, or null if no individual is received before the timeout.void waitForAllSlavesToFinishEvaluating(EvolutionState state)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||