_errorMessage = (message.length() > 0) ? message : "Unknown error";
}
+void OptimizerAlgBase::setNbOfBranches(int nbOfBranches)
+{
+ _nbOfBranches=nbOfBranches;
+}
+
+int OptimizerAlgBase::getNbOfBranches() const
+{
+ return _nbOfBranches;
+}
OptimizerAlgASync::OptimizerAlgASync(Pool *pool):OptimizerAlgBase(pool)
{
Pool *_pool;
Proc * _proc;
std::string _errorMessage;
+ int _nbOfBranches;
protected:
OptimizerAlgBase(Pool *pool);
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;