X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fengine%2FOptimizerAlg.hxx;h=b7a3022649279af5ee81090a515f39145c9e7496;hb=1894c52d0838df8676e770bef061fc23ca436452;hp=11a735d4564e0aa278229224fb538d4f9d67a4b2;hpb=216c15bc1ec59372c7313d273cc0fa1d206a68d4;p=modules%2Fyacs.git diff --git a/src/engine/OptimizerAlg.hxx b/src/engine/OptimizerAlg.hxx index 11a735d45..b7a302264 100644 --- a/src/engine/OptimizerAlg.hxx +++ b/src/engine/OptimizerAlg.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2006-2014 CEA/DEN, EDF R&D +// Copyright (C) 2006-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -44,6 +44,7 @@ namespace YACS Pool *_pool; Proc * _proc; std::string _errorMessage; + int _nbOfBranches; protected: OptimizerAlgBase(Pool *pool); @@ -59,7 +60,7 @@ namespace YACS virtual TypeCode *getTCForAlgoInit() const; //! returns typecode of type expected as algo result. OwnerShip of returned pointer is held by this. virtual TypeCode *getTCForAlgoResult() const; - virtual void initialize(const Any *input) throw (Exception); + virtual void initialize(const Any *input) ; virtual void start() = 0;//! Update _pool attribute before performing anything. virtual void takeDecision() = 0;//! _pool->getCurrentId gives the \b id at the origin of this call. //! Perform the job of analysing to know what new jobs to do (_pool->pushInSample) @@ -73,7 +74,7 @@ namespace YACS virtual TypeCode *getTCForOutProxy() const; virtual TypeCode *getTCForAlgoInitProxy() const; virtual TypeCode *getTCForAlgoResultProxy() const; - virtual void initializeProxy(const Any *input) throw (Exception); + virtual void initializeProxy(const Any *input) ; virtual void startProxy(); virtual void takeDecisionProxy(); virtual void finishProxy(); @@ -86,7 +87,8 @@ namespace YACS virtual bool hasError() const; virtual const std::string & getError() const; virtual void setError(const std::string & message); - + void setNbOfBranches(int nbOfBranches); + int getNbOfBranches() const; }; typedef OptimizerAlgBase OptimizerAlgSync;