Base class factorizing common methods for python algorithms interfaces. More...
#include <PyOptimizerAlg.hxx>
Public Member Functions | |
virtual | ~PyOptimizerAlgBase () |
virtual TypeCode * | getTCForInProxy () const |
virtual TypeCode * | getTCForOutProxy () const |
virtual TypeCode * | getTCForAlgoInitProxy () const |
virtual TypeCode * | getTCForAlgoResultProxy () const |
virtual void | initializeProxy (const Any *input) throw (Exception) |
virtual void | startProxy () |
virtual void | takeDecisionProxy () |
virtual void | finishProxy () |
virtual Any * | getAlgoResultProxy () |
Public Member Functions inherited from YACS::ENGINE::OptimizerAlgBase | |
virtual void | setPool (Pool *pool) |
virtual void | setProc (Proc *proc) |
virtual Proc * | getProc () |
virtual bool | hasError () const |
virtual const std::string & | getError () const |
virtual void | setError (const std::string &message) |
void | setNbOfBranches (int nbOfBranches) |
int | getNbOfBranches () const |
Public Member Functions inherited from YACS::ENGINE::RefCounter | |
unsigned int | getRefCnt () const |
void | incrRef () const |
bool | decrRef () |
Protected Member Functions | |
PyOptimizerAlgBase (Pool *pool) | |
Protected Member Functions inherited from YACS::ENGINE::OptimizerAlgBase | |
OptimizerAlgBase (Pool *pool) | |
virtual | ~OptimizerAlgBase () |
virtual TypeCode * | getTCForIn () const =0 |
returns typecode of type expected as Input. OwnerShip of returned pointer is held by this. More... | |
virtual TypeCode * | getTCForOut () const =0 |
returns typecode of type expected as Output. OwnerShip of returned pointer is held by this. More... | |
virtual TypeCode * | getTCForAlgoInit () const |
returns typecode of type expected for algo initialization. OwnerShip of returned pointer is held by this. More... | |
virtual TypeCode * | getTCForAlgoResult () const |
returns typecode of type expected as algo result. OwnerShip of returned pointer is held by this. More... | |
virtual void | initialize (const Any *input) throw (Exception) |
virtual void | start ()=0 |
virtual void | takeDecision ()=0 |
Update _pool attribute before performing anything. More... | |
virtual void | finish () |
virtual Any * | getAlgoResult () |
Called when optimization has succeed. More... | |
Protected Member Functions inherited from YACS::ENGINE::RefCounter | |
RefCounter () | |
RefCounter (const RefCounter &other) | |
virtual | ~RefCounter () |
Additional Inherited Members | |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
static unsigned int | _totalCnt =0 |
Protected Attributes inherited from YACS::ENGINE::OptimizerAlgBase | |
Pool * | _pool |
Proc * | _proc |
std::string | _errorMessage |
int | _nbOfBranches |
Base class factorizing common methods for python algorithms interfaces.
Definition at line 32 of file PyOptimizerAlg.hxx.
|
virtual |
Definition at line 50 of file PyOptimizerAlg.cxx.
|
protected |
Definition at line 45 of file PyOptimizerAlg.cxx.
|
virtual |
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Reimplemented in YACS::ENGINE::PyOptimizerAlgASync.
Definition at line 66 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::finishProxy().
Referenced by YACS::ENGINE::PyOptimizerAlgASync::finishProxy().
|
virtual |
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Definition at line 102 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::getAlgoResultProxy().
|
virtual |
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Definition at line 90 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::getTCForAlgoInitProxy().
|
virtual |
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Definition at line 96 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::getTCForAlgoResultProxy().
|
virtual |
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Definition at line 78 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::getTCForInProxy().
|
virtual |
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Definition at line 84 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::getTCForOutProxy().
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Definition at line 72 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::initializeProxy().
|
virtual |
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Reimplemented in YACS::ENGINE::PyOptimizerAlgASync.
Definition at line 54 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::startProxy().
|
virtual |
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Reimplemented in YACS::ENGINE::PyOptimizerAlgASync.
Definition at line 60 of file PyOptimizerAlg.cxx.
References YACS::ENGINE::OptimizerAlgBase::takeDecisionProxy().