Test a robot using a random genotype. More...

Inheritance diagram for TestRandom:

List of all members.

Public Member Functions

 TestRandom ()
 Constructor.
virtual ~TestRandom ()
 Destructor.
int * buildRandomDNA ()
 Create a random genotype.
virtual void configure (ConfigurationParameters &params, QString prefix)
 Configures the object using a ConfigurationParameters object.
virtual void runTest ()
 Run the test setting random genotype.
virtual void save (ConfigurationParameters &params, QString prefix)
 Save the actual status of parameters into the ConfigurationParameters object passed.

Static Public Member Functions

static void describe (QString type)
 Describe Function.

Detailed Description

Test a robot using a random genotype.

Definition at line 35 of file tests.h.


Constructor & Destructor Documentation

Constructor.

Warning:
This class must work correctly even if the configure function is not called, because it could be create without a ConfigurationParameters object when the user doesn't explicitly add this in the configuration file

Definition at line 36 of file tests.cpp.

References AbstractTest::m_iconFilename, AbstractTest::m_menuText, and AbstractTest::m_tooltip.

~TestRandom ( ) [virtual]

Destructor.

Definition at line 44 of file tests.cpp.


Member Function Documentation

void configure ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Configures the object using a ConfigurationParameters object.

Parameters:
paramsthe configuration parameters object with parameters to use
prefixthe prefix to use to access the object configuration parameters. This is guaranteed to end with the separator character when called by the factory, so you don't need to add one

Reimplemented from AbstractTest.

Definition at line 66 of file tests.cpp.

void describe ( QString  type) [static]

Describe Function.

Reimplemented from AbstractTest.

Definition at line 75 of file tests.cpp.

References ParameterSettable::addTypeDescription().

void save ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Save the actual status of parameters into the ConfigurationParameters object passed.

This is not implemented, a call to this function will cause an abort

Parameters:
paramsthe configuration parameters object on which save actual parameters
prefixthe prefix to use to access the object configuration parameters.

Reimplemented from AbstractTest.

Definition at line 70 of file tests.cpp.

References ConfigurationParameters::startObjectParameters().


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