-// Copyright (C) 2006-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2023 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
virtual YACS::ENGINE::TypeCode *getTCForAlgoInit() const;
//! returns typecode of type expected as algo result. OwnerShip of returned pointer is held by this.
virtual YACS::ENGINE::TypeCode *getTCForAlgoResult() const;
- virtual void initialize(const YACS::ENGINE::Any *input) throw (YACS::Exception);
+ virtual void initialize(const YACS::ENGINE::Any *input);
virtual void start(); //! Update _pool attribute before performing anything.
virtual void takeDecision();//! _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)
* future to initialize an algorithm with custom data.
*/
void OptimizerAlgSyncExample::initialize(const YACS::ENGINE::Any *input)
- throw (YACS::Exception)
{
std::cout << "Algo initialize, input = " << input->getIntValue() << std::endl;
}
YACS::ENGINE::OptimizerAlgBase * createOptimizerAlgSyncExample(YACS::ENGINE::Pool *pool)
{
return new OptimizerAlgSyncExample(pool);
-}
\ No newline at end of file
+}