Darwin Neuroevolution Framework
Public Member Functions | Static Public Member Functions | List of all members
darwin::Universe Class Reference

The persistent storage for all the experiments and variations. More...

#include <universe.h>

Inheritance diagram for darwin::Universe:
core::NonCopyable

Public Member Functions

string path () const
 The path of this universe database.
 
unique_ptr< DbExperimentnewExperiment (const optional< string > &name, const string &setup, const optional< db::RowId > &base_variation_id)
 Creates a new experiment/fork.
 
unique_ptr< DbExperimentloadExperiment (db::RowId experiment_id) const
 Loads existing experiment.
 
bool findExperiment (const string &name) const
 Returns true if there is an experiment with the specified name.
 
vector< DbExperimentexperimentsList () const
 Returns the list of experiments in this universe.
 
unique_ptr< DbExperimentVariationnewVariation (db::RowId experiment_id, const string &config)
 Creates a new variation.
 
unique_ptr< DbExperimentVariationloadVariation (db::RowId variation_id) const
 Loads an existing variation.
 
unique_ptr< DbEvolutionTracenewTrace (db::RowId variation_id, const string &evolution_config)
 Create a new evolution trace.
 
void newGeneration (const DbGeneration &db_generation)
 Creates a new generation record.
 

Static Public Member Functions

static unique_ptr< Universecreate (const string &path)
 Creates a new universe database.
 
static unique_ptr< Universeopen (const string &path)
 Opens an existing universe database.
 

Detailed Description

The persistent storage for all the experiments and variations.


The documentation for this class was generated from the following files: