This class setup an evolutionary experiment. More...

Inheritance diagram for EvoRobotComponent:

List of all members.

Public Slots

void evolve ()
 Start the evolutionary process (it automatically disable "step-by-step" modality)
void exceptionDuringOperation (BaseException *e)
 Warns the user about the exception thrown by evolution or tests (only if not in batch running)
void onThreadOperationDone (QString message)
 executed when the current thread operation finish
void runTest ()
 Run the test associated to the parameter testToRun.
void runTestFromQAction ()
 Run a Test associated to the QAction whom triggered this slot.
void stop ()
 Suspend the evolutionary process.

Signals

void actionFinished ()
 emitted when the action (evolve, test, ...) has been finished/stopped

Public Member Functions

 EvoRobotComponent ()
 Constructor.
 ~EvoRobotComponent ()
 Destructor.
virtual void configure (farsa::ConfigurationParameters &params, QString prefix)
 Configure function.
EvogagetGA ()
 Return the Evoga.
ComponentUIgetUIManager ()
 Return an instance of EvoRobotViewer that manage the viewers.
virtual void postConfigureInitialization ()
 declare resources and initialize sensors
virtual void save (farsa::ConfigurationParameters &params, QString prefix)
 Save function.

Static Public Member Functions

static void describe (QString type)
 Description of all parameters.

Detailed Description

This class setup an evolutionary experiment.

Definition at line 39 of file evorobotcomponent.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 95 of file evorobotcomponent.cpp.

References EvoRobotComponent::exceptionDuringOperation().

Destructor.

Definition at line 106 of file evorobotcomponent.cpp.

References WorkerThread::quit().


Member Function Documentation

void actionFinished ( ) [signal]

emitted when the action (evolve, test, ...) has been finished/stopped

Referenced by EvoRobotComponent::onThreadOperationDone().

void evolve ( ) [slot]

Start the evolutionary process (it automatically disable "step-by-step" modality)

Definition at line 225 of file evorobotcomponent.cpp.

References WorkerThread::addOperation(), Logger::error(), Evoga::evolveAllReplicas(), Evoga::getEvoRobotExperiment(), Evoga::resetStop(), and EvoRobotExperiment::setActivityPhase().

void exceptionDuringOperation ( BaseException *  e) [slot]

Warns the user about the exception thrown by evolution or tests (only if not in batch running)

Definition at line 277 of file evorobotcomponent.cpp.

References Logger::error().

Referenced by EvoRobotComponent::EvoRobotComponent().

ComponentUI * getUIManager ( ) [virtual]

Return an instance of EvoRobotViewer that manage the viewers.

Implements Component.

Definition at line 112 of file evorobotcomponent.cpp.

void onThreadOperationDone ( QString  message) [slot]

executed when the current thread operation finish

Parameters:
messageis the message about the operation done

Definition at line 284 of file evorobotcomponent.cpp.

References EvoRobotComponent::actionFinished(), and Component::setStatus().

Referenced by TestOperation::run(), and EvolveOperation::run().

void postConfigureInitialization ( ) [virtual]

declare resources and initialize sensors

Reimplemented from ParameterSettable.

Definition at line 208 of file evorobotcomponent.cpp.

void runTest ( ) [slot]

Run the test associated to the parameter testToRun.

Definition at line 244 of file evorobotcomponent.cpp.

References WorkerThread::addOperation(), Logger::error(), AvailableTestList::getTest(), Evoga::resetStop(), and AbstractTest::runTest().

Referenced by EvoRobotComponent::runTestFromQAction().

void runTestFromQAction ( ) [slot]

Run a Test associated to the QAction whom triggered this slot.

Definition at line 266 of file evorobotcomponent.cpp.

References Logger::error(), and EvoRobotComponent::runTest().

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

Save function.

Implements Component.

Definition at line 204 of file evorobotcomponent.cpp.

References Evoga::save().

void stop ( ) [slot]

Suspend the evolutionary process.

Definition at line 221 of file evorobotcomponent.cpp.

References WorkerThread::stopCurrentOperation().


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