This class setup an evolutionary experiment. More...

Inheritance diagram for EvoRobotComponent:

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
 
- Signals inherited from Component
void statusChanged (QString newStatus)
 emitted when the status is changed
 

Public Member Functions

 EvoRobotComponent ()
 Constructor.
 
 ~EvoRobotComponent ()
 Destructor.
 
virtual void configure (farsa::ConfigurationParameters &params, QString prefix)
 Configure function.
 
EvogagetGA ()
 Return the Evoga.
 
ParameterSettableUIgetUIManager ()
 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.
 
- Public Member Functions inherited from Component
 Component ()
 Constructor.
 
virtual ~Component ()
 Destructor.
 
void setStatus (QString newStatus)
 used by subclasses to change the status of the experiment
 
QString status ()
 return a text description of the current status of the component
 
- Public Member Functions inherited from ParameterSettableWithConfigureFunction
void addObserver (RuntimeParameterObserver *obs)
 
getRuntimeParameter (QString paramName)
 
 ParameterSettable ()
 
void removeObserver (RuntimeParameterObserver *obs)
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 
- Public Member Functions inherited from ParameterSettable
void addObserver (RuntimeParameterObserver *obs)
 
getRuntimeParameter (QString paramName)
 
void removeObserver (RuntimeParameterObserver *obs)
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 

Static Public Member Functions

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

Additional Inherited Members

- Public Types inherited from ParameterSettableWithConfigureFunction
enum  Property
 
- Public Attributes inherited from ParameterSettableWithConfigureFunction
 AllowMultiple
 
 Default
 
 IsList
 
 IsMandatory
 
- Static Public Attributes inherited from ParameterSettableWithConfigureFunction
static const double Infinity
 
static const int MaxInteger
 
static const int MinInteger
 
- Protected Member Functions inherited from ParameterSettableWithConfigureFunction
void notifyChangesToParam (QString paramName)
 
- Static Protected Member Functions inherited from ParameterSettableWithConfigureFunction
static Descriptor addTypeDescription (QString type, QString shortHelp, QString longHelp=QString(""))
 
static void setGraphicalEditor (QString type)
 

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().

ParameterSettableUI * getUIManager ( )
virtual

Return an instance of EvoRobotViewer that manage the viewers.

Reimplemented from ParameterSettableWithConfigureFunction.

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 EvolveOperation::run(), and TestOperation::run().

void postConfigureInitialization ( )
virtual

declare resources and initialize sensors

Reimplemented from ParameterSettableWithConfigureFunction.

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: