![]() |
IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
|
Coroutine managing ONE slave. More...
Public Member Functions | |
void | run (master< Res, Params > &master, connection_ptr connection) |
Automatically launches test on agents when master is ready. More... | |
void | close (master< Res, Params > &master, connection_ptr connection) |
Remove a slave from the list of available slaves and close his connection. More... | |
Coroutine managing ONE slave.
void master< Res, Params >::session::close | ( | master< Res, Params > & | master, |
connection_ptr | connection | ||
) |
Remove a slave from the list of available slaves and close his connection.
[in] | master | The master corresponding to this slave |
connection | The slave to be removed |
void master< Res, Params >::session::run | ( | master< Res, Params > & | master, |
connection_ptr | connection | ||
) |
Automatically launches test on agents when master is ready.
The coroutine waits for the master to fill the work queue.
Then, an agent is extracted and sent to the slave.
When the slave responds, the result is put in the list of results and the coroutine loops.
If an error occured during the agent testing, the agent is replace in the work queue.
master | The master corresponding to this slave |
connection | The slave used to performed tests |