LoveBrains
1.0.0
|
Contains all the objects in order to run the simulation. More...
#include <simulator.h>
Public Member Functions | |
Simulator (void) throw () | |
Constructor. | |
~Simulator (void) throw () | |
Destructor. | |
GANN::GANNEngine const & | getEngine (void) const throw () |
Get the GANN Engine member. More... | |
GANN::GANNEngine & | getEngine (void) throw () |
Get the GANN Engine member. More... | |
GANN::ANNGenerator const & | getGenerator (void) const throw () |
Get the ANN generator member. More... | |
GA::GAConfig const & | getConfig (void) const throw () |
Get the simulator's configuration member. More... | |
std::list< Graphics::IObject * > & | getObjects (void) throw () |
Get the list that contains all the environment's objects. More... | |
Graphics::Physics & | getPhysicsEngine (void) throw () |
Get the physics engine member. More... | |
Simulator & | operator= (Simulator const &simulator) |
void | InitEnvironment (SConfig const &config) |
Initialize the environment. More... | |
void | Init (SConfig const &config, const char *file) |
Initialize the simulator. More... | |
void | Run (const char *output_file) |
Run the simulation. More... | |
Static Public Member Functions | |
static void | Evaluate (std::list< GA::IDNA * > &brains) |
This function is given to the GAEngine with the aim of evaluating the population. More... | |
Contains all the objects in order to run the simulation.
|
static |
This function is given to the GAEngine with the aim of evaluating the population.
brains | : Contains neural networks that will be given to the AI objects. |
GA::GAConfig const & Simulator::Simulator::getConfig | ( | void | ) | const | |
throw | ( | ||||
) |
Get the simulator's configuration member.
GANN::GANNEngine const & Simulator::Simulator::getEngine | ( | void | ) | const | |
throw | ( | ||||
) |
Get the GANN Engine member.
GANN::GANNEngine & Simulator::Simulator::getEngine | ( | void | ) | ||
throw | ( | ||||
) |
Get the GANN Engine member.
GANN::ANNGenerator const & Simulator::Simulator::getGenerator | ( | void | ) | const | |
throw | ( | ||||
) |
Get the ANN generator member.
std::list< Graphics::IObject * > & Simulator::Simulator::getObjects | ( | void | ) | ||
throw | ( | ||||
) |
Get the list that contains all the environment's objects.
Graphics::Physics & Simulator::Simulator::getPhysicsEngine | ( | void | ) | ||
throw | ( | ||||
) |
Get the physics engine member.
void Simulator::Simulator::Init | ( | SConfig const & | config, |
const char * | file | ||
) |
Initialize the simulator.
config | : Contains the simalator configuration. |
file | : Contains the path to the environment configuration. |
void Simulator::Simulator::InitEnvironment | ( | SConfig const & | config | ) |
Initialize the environment.
config | : Contains the simulator configuration. |
void Simulator::Simulator::Run | ( | const char * | output_file | ) |
Run the simulation.
output_file | : Contains the path to the output file to save the best neural network. |