Newer
Older
/**
* @namespace message
* @brief
*
*/
/**
* @struct request
* @brief Represent a serialized agent extracted from an archive
*
* @param id Identifier of this agent
* @param nb_eval Total number of evaluation on this agent
* @param seed Random seed used by the ALE to test this agent
* @param params Unserialized agent
* @see agent
*/
int id; /**< Identifier of this agent */
int nb_eval; /**< Total number of evaluation on this agent */
uint64_t seed; /**< Random seed used by the ALE to test this agent */
T params; /**< Unserialized agent */
/**
* @fn serialize
* @brief Save/Load agent with archive
*
* @param[in,out] ar Archived agent
* @remark The second parameter is unused.
* @remark This function is automatically called when (un)serializing with boost.
*/
void serialize(Archive& ar, const unsigned int)
{
ar & id
& nb_eval
& seed
& params;
}
};
template <typename T>
/**
* @struct result
* @brief Represent a serialized agent freshly tested
*
* @param id Identifier of this agent
* @param results List of score performed by this agent during testing
*/
int id; /**< Identifier of this agent */
std::list<T> results; /**< List of score performed by this agent during testing */
/**
* @fn serialize
* @brief Save/Load agent with archive
*
* @param[in,out] ar Archived agent
* @remark The second parameter is unused.
* @remark This function is automatically called when (un)serializing with boost.
*/