26 OptimizerAlgBase::OptimizerAlgBase(
Pool *pool):_pool(pool),
_proc(NULL)
130 _errorMessage = (message.length() > 0) ? message :
"Unknown error";
153 terminateSlaveThread();
159 signalSlaveAndWait();
164 AlternateThread::start();
: Interface for management of storage of data formated dynamically in its TypeCode....
virtual void finishProxy()
OptimizerAlgASync(Pool *pool)
virtual void startToTakeDecision()=0
virtual void takeDecision()
Update _pool attribute before performing anything.
virtual ~OptimizerAlgASync()
virtual void start()
Called when optimization has succeed.
Base class factorizing common methods for all algorithms interfaces.
virtual TypeCode * getTCForAlgoInit() const
returns typecode of type expected for algo initialization. OwnerShip of returned pointer is held by t...
virtual TypeCode * getTCForInProxy() const
virtual TypeCode * getTCForAlgoInitProxy() const
virtual void takeDecision()=0
Update _pool attribute before performing anything.
virtual TypeCode * getTCForAlgoResult() const
returns typecode of type expected as algo result. OwnerShip of returned pointer is held by this.
virtual void takeDecisionProxy()
virtual Any * getAlgoResultProxy()
virtual Any * getAlgoResult()
Called when optimization has succeed.
virtual TypeCode * getTCForIn() const =0
returns typecode of type expected as Input. OwnerShip of returned pointer is held by this.
virtual void setPool(Pool *pool)
virtual void finishProxy()
virtual void setError(const std::string &message)
virtual void setProc(Proc *proc)
virtual void initializeProxy(const Any *input)
virtual TypeCode * getTCForAlgoResultProxy() const
virtual TypeCode * getTCForOut() const =0
returns typecode of type expected as Output. OwnerShip of returned pointer is held by this.
std::string _errorMessage
virtual const std::string & getError() const
virtual void startProxy()
virtual bool hasError() const
virtual ~OptimizerAlgBase()
void setNbOfBranches(int nbOfBranches)
virtual void initialize(const Any *input)
virtual TypeCode * getTCForOutProxy() const
int getNbOfBranches() const
Pool used to manage the samples of the optimizer loop plugin.
Base class for all schema objects.
static YACS::ENGINE::TypeCode * _tc_string
Base class for all type objects.