Base class factorizing common methods for all algorithms interfaces. More...
#include <OptimizerAlg.hxx>


Public Member Functions | |
| 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 () | 
| 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 | |
| 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 () | 
Protected Attributes | |
| Pool * | _pool | 
| Proc * | _proc | 
| std::string | _errorMessage | 
| int | _nbOfBranches | 
  Protected Attributes inherited from YACS::ENGINE::RefCounter | |
| unsigned int | _cnt | 
Additional Inherited Members | |
  Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
| static unsigned int | _totalCnt =0 | 
Base class factorizing common methods for all algorithms interfaces.
Definition at line 41 of file OptimizerAlg.hxx.
      
  | 
  protected | 
Definition at line 26 of file OptimizerAlg.cxx.
      
  | 
  protectedvirtual | 
Definition at line 30 of file OptimizerAlg.cxx.
      
  | 
  protectedvirtual | 
_pool->getCurrentId gives the id at the origin of this call. Perform the job of analysing to know what new jobs to do (_pool->pushInSample) or in case of convergence _pool->destroyAll
Reimplemented in YACS::ENGINE::PluginSimplex.
Definition at line 38 of file OptimizerAlg.cxx.
Referenced by finishProxy().
      
  | 
  virtual | 
Reimplemented in YACS::ENGINE::OptimizerAlgASync, YACS::ENGINE::PyOptimizerAlgASync, and YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 92 of file OptimizerAlg.cxx.
References _errorMessage, and finish().
Referenced by YACS::ENGINE::OptimizerLoop::exUpdateState(), YACS::ENGINE::OptimizerLoop::finalize(), YACS::ENGINE::PyOptimizerAlgBase::finishProxy(), YACS::ENGINE::OptimizerAlgASync::finishProxy(), YACS::ENGINE::OptimizerLoop::updateStateOnFailedEventFrom(), and YACS::ENGINE::OptimizerLoop::updateStateOnFinishedEventFrom().
      
  | 
  protectedvirtual | 
Called when optimization has succeed.
Definition at line 52 of file OptimizerAlg.cxx.
Referenced by getAlgoResultProxy().
      
  | 
  virtual | 
Reimplemented in YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 98 of file OptimizerAlg.cxx.
References getAlgoResult().
Referenced by YACS::ENGINE::FakeNodeForOptimizerLoop::execute(), YACS::ENGINE::OptimizerLoop::finalize(), and YACS::ENGINE::PyOptimizerAlgBase::getAlgoResultProxy().
      
  | 
  virtual | 
Definition at line 123 of file OptimizerAlg.cxx.
References _errorMessage.
Referenced by YACS::ENGINE::OptimizerLoop::exUpdateState(), and YACS::ENGINE::OptimizerLoop::updateStateOnFinishedEventFrom().
| int OptimizerAlgBase::getNbOfBranches | ( | ) | const | 
Definition at line 138 of file OptimizerAlg.cxx.
References _nbOfBranches.
      
  | 
  virtual | 
      
  | 
  protectedvirtual | 
returns typecode of type expected for algo initialization. OwnerShip of returned pointer is held by this.
Definition at line 42 of file OptimizerAlg.cxx.
References YACS::ENGINE::Runtime::_tc_string.
Referenced by getTCForAlgoInitProxy().
      
  | 
  virtual | 
Reimplemented in YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 67 of file OptimizerAlg.cxx.
References getTCForAlgoInit().
Referenced by YACS::ENGINE::PyOptimizerAlgBase::getTCForAlgoInitProxy(), and YACS::ENGINE::OptimizerLoop::setAlgorithm().
      
  | 
  protectedvirtual | 
returns typecode of type expected as algo result. OwnerShip of returned pointer is held by this.
Definition at line 47 of file OptimizerAlg.cxx.
References YACS::ENGINE::Runtime::_tc_string.
Referenced by getTCForAlgoResultProxy().
      
  | 
  virtual | 
Reimplemented in YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 72 of file OptimizerAlg.cxx.
References getTCForAlgoResult().
Referenced by YACS::ENGINE::PyOptimizerAlgBase::getTCForAlgoResultProxy(), and YACS::ENGINE::OptimizerLoop::setAlgorithm().
      
  | 
  protectedpure virtual | 
returns typecode of type expected as Input. OwnerShip of returned pointer is held by this.
Implemented in YACS::ENGINE::PluginSimplex.
Referenced by getTCForInProxy().
      
  | 
  virtual | 
Reimplemented in YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 57 of file OptimizerAlg.cxx.
References getTCForIn().
Referenced by YACS::ENGINE::PyOptimizerAlgBase::getTCForInProxy(), and YACS::ENGINE::OptimizerLoop::setAlgorithm().
      
  | 
  protectedpure virtual | 
returns typecode of type expected as Output. OwnerShip of returned pointer is held by this.
Implemented in YACS::ENGINE::PluginSimplex.
Referenced by getTCForOutProxy().
      
  | 
  virtual | 
Reimplemented in YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 62 of file OptimizerAlg.cxx.
References getTCForOut().
Referenced by YACS::ENGINE::PyOptimizerAlgBase::getTCForOutProxy(), and YACS::ENGINE::OptimizerLoop::setAlgorithm().
      
  | 
  virtual | 
Definition at line 118 of file OptimizerAlg.cxx.
References _errorMessage.
Referenced by YACS::ENGINE::OptimizerLoop::exUpdateState(), and YACS::ENGINE::OptimizerLoop::updateStateOnFinishedEventFrom().
Reimplemented in YACS::ENGINE::PluginSimplex.
Definition at line 34 of file OptimizerAlg.cxx.
Reimplemented in YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 77 of file OptimizerAlg.cxx.
Referenced by YACS::ENGINE::OptimizerLoop::exUpdateState(), and YACS::ENGINE::PyOptimizerAlgBase::initializeProxy().
      
  | 
  virtual | 
Definition at line 128 of file OptimizerAlg.cxx.
References _errorMessage.
Referenced by YACS::ENGINE::OptimizerLoop::updateStateOnFailedEventFrom().
| void OptimizerAlgBase::setNbOfBranches | ( | int | nbOfBranches | ) | 
Definition at line 133 of file OptimizerAlg.cxx.
References _nbOfBranches.
Referenced by YACS::ENGINE::OptimizerLoop::exUpdateState().
      
  | 
  virtual | 
Definition at line 103 of file OptimizerAlg.cxx.
References _pool.
Referenced by YACS::ENGINE::SalomeOptimizerLoop::loadAlgorithm().
      
  | 
  virtual | 
Definition at line 108 of file OptimizerAlg.cxx.
References _proc.
Referenced by YACS::ENGINE::OptimizerLoop::setAlgorithm().
      
  | 
  protectedpure virtual | 
Implemented in YACS::ENGINE::OptimizerAlgASync, YACS::ENGINE::PyOptimizerAlgASync, and YACS::ENGINE::PluginSimplex.
Referenced by startProxy().
      
  | 
  virtual | 
Reimplemented in YACS::ENGINE::PyOptimizerAlgASync, and YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 82 of file OptimizerAlg.cxx.
References start().
Referenced by YACS::ENGINE::OptimizerLoop::exUpdateState(), and YACS::ENGINE::PyOptimizerAlgBase::startProxy().
      
  | 
  protectedpure virtual | 
Update _pool attribute before performing anything.
Implemented in YACS::ENGINE::OptimizerAlgASync, YACS::ENGINE::PyOptimizerAlgASync, and YACS::ENGINE::PluginSimplex.
Referenced by takeDecisionProxy().
      
  | 
  virtual | 
Reimplemented in YACS::ENGINE::PyOptimizerAlgASync, and YACS::ENGINE::PyOptimizerAlgBase.
Definition at line 87 of file OptimizerAlg.cxx.
References takeDecision().
Referenced by YACS::ENGINE::PyOptimizerAlgBase::takeDecisionProxy(), and YACS::ENGINE::OptimizerLoop::updateStateOnFinishedEventFrom().
      
  | 
  protected | 
Definition at line 46 of file OptimizerAlg.hxx.
Referenced by finishProxy(), getError(), hasError(), and setError().
      
  | 
  protected | 
Definition at line 47 of file OptimizerAlg.hxx.
Referenced by getNbOfBranches(), and setNbOfBranches().
      
  | 
  protected | 
Definition at line 44 of file OptimizerAlg.hxx.
Referenced by YACS::ENGINE::PluginSimplex::parseFileToInit(), YACS::ENGINE::OptimizerAlgASync::run(), and setPool().
      
  | 
  protected | 
Definition at line 45 of file OptimizerAlg.hxx.