This class setup an evolutionary experiment. More...
Public Slots | |
void | evolve () |
Start the evolutionary process (it automatically disable "step-by-step" modality) More... | |
void | exceptionDuringOperation (farsa::BaseException *e) |
Warns the user about the exception thrown by evolution or tests (only if not in batch running) More... | |
void | onThreadOperationDone (QString message) |
executed when the current thread operation finish More... | |
void | runTest () |
Run the test associated to the parameter testToRun. More... | |
void | runTestFromQAction () |
Run a Test associated to the QAction whom triggered this slot. More... | |
void | stop () |
Suspend the evolutionary process. More... | |
Signals | |
void | actionFinished () |
emitted when the action (evolve, test, ...) has been finished/stopped More... | |
Signals inherited from Component | |
void | statusChanged (QString newStatus) |
emitted when the status is changed More... | |
Public Member Functions | |
EvoRobotComponent () | |
Constructor. More... | |
~EvoRobotComponent () | |
Destructor. More... | |
virtual void | configure (farsa::ConfigurationParameters ¶ms, QString prefix) |
Configure function. More... | |
Evoga * | getGA () |
Return the Evoga. More... | |
ParameterSettableUI * | getUIManager () |
Return an instance of EvoRobotViewer that manage the viewers. More... | |
virtual void | postConfigureInitialization () |
declare resources and initialize sensors More... | |
virtual void | save (farsa::ConfigurationParameters ¶ms, QString prefix) |
Save function. More... | |
virtual void | stopCurrentOperation () |
This stops the current running operation. More... | |
Public Member Functions inherited from Component | |
Component () | |
Constructor. More... | |
virtual | ~Component () |
Destructor. More... | |
void | setStatus (QString newStatus) |
used by subclasses to change the status of the experiment More... | |
QString | status () |
return a text description of the current status of the component More... | |
Public Member Functions inherited from ParameterSettable | |
void | addObserver (RuntimeParameterObserver *obs) |
T | 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. More... | |
Static Public Member Functions inherited from ParameterSettable | |
static void | describe (QString type) |
static QString | fullParameterDescriptionPath (QString type, QString param) |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
Additional Inherited Members | |
Public Types inherited from ParameterSettable | |
enum | Property |
Public Attributes inherited from ParameterSettable | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
Static Public Attributes inherited from ParameterSettable | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
Protected Member Functions inherited from ParameterSettable | |
void | notifyChangesToParam (QString paramName) |
Static Protected Member Functions inherited from ParameterSettable | |
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().
~EvoRobotComponent | ( | ) |
Member Function Documentation
|
signal |
emitted when the action (evolve, test, ...) has been finished/stopped
Referenced by EvoRobotComponent::onThreadOperationDone().
|
virtual |
Configure function.
Implements Component.
Definition at line 117 of file evorobotcomponent.cpp.
References AvailableTestList::addTest(), ConfigurationHelper::getBool(), ConfigurationParameters::getGroupsWithPrefixList(), ConfigurationParameters::getObjectFromGroup(), ConfigurationHelper::getString(), WorkerThread::quit(), AbstractTest::setComponent(), and Component::setStatus().
|
static |
Description of all parameters.
Definition at line 227 of file evorobotcomponent.cpp.
References ParameterSettable::addTypeDescription(), ParameterSettable::AllowMultiple, and ParameterSettable::IsMandatory.
|
slot |
Start the evolutionary process (it automatically disable "step-by-step" modality)
Definition at line 241 of file evorobotcomponent.cpp.
References WorkerThread::addOperation(), Logger::error(), Evoga::evolveAllReplicas(), Evoga::getEvoRobotExperiment(), Evoga::resetStop(), and EvoRobotExperiment::setActivityPhase().
|
slot |
Warns the user about the exception thrown by evolution or tests (only if not in batch running)
Definition at line 293 of file evorobotcomponent.cpp.
References Logger::error().
Referenced by EvoRobotComponent::EvoRobotComponent().
Evoga * getGA | ( | ) |
Return the Evoga.
Definition at line 233 of file evorobotcomponent.cpp.
Referenced by TestRandom::buildRandomDNA(), TestRandom::runTest(), TestIndividual::runTest(), TestCurrent::runTest(), and TestIndividual::setPopulationToTest().
|
virtual |
Return an instance of EvoRobotViewer that manage the viewers.
Reimplemented from ParameterSettable.
Definition at line 113 of file evorobotcomponent.cpp.
|
slot |
executed when the current thread operation finish
- Parameters
-
message is the message about the operation done
Definition at line 298 of file evorobotcomponent.cpp.
References EvoRobotComponent::actionFinished(), and Component::setStatus().
Referenced by EvolveOperation::run(), and TestOperation::run().
|
virtual |
declare resources and initialize sensors
Reimplemented from ParameterSettable.
Definition at line 219 of file evorobotcomponent.cpp.
|
slot |
Run the test associated to the parameter testToRun.
Definition at line 260 of file evorobotcomponent.cpp.
References WorkerThread::addOperation(), Logger::error(), AvailableTestList::getTest(), Evoga::resetStop(), and AbstractTest::runTest().
Referenced by EvoRobotComponent::runTestFromQAction().
|
slot |
Run a Test associated to the QAction whom triggered this slot.
Definition at line 282 of file evorobotcomponent.cpp.
References Logger::error(), and EvoRobotComponent::runTest().
|
virtual |
Save function.
Implements Component.
Definition at line 215 of file evorobotcomponent.cpp.
References Evoga::save().
|
slot |
Suspend the evolutionary process.
Definition at line 237 of file evorobotcomponent.cpp.
References WorkerThread::stopCurrentOperation().
Referenced by EvoRobotComponent::stopCurrentOperation().
|
virtual |
This stops the current running operation.
Implements Component.
Definition at line 222 of file evorobotcomponent.cpp.
References EvoRobotComponent::stop().
The documentation for this class was generated from the following files:
- experiments/evorobot/include/evorobotcomponent.h
- experiments/evorobot/src/evorobotcomponent.cpp