Add islandNotifier to allow the mig and int policy to be checked in the island. The islandNotifier is added to the algorithm continuator and will make the island perform a binded task. In the case of island, the task is to check policies.
This commit is contained in:
parent
477dbe49a9
commit
cf561b537a
14 changed files with 498 additions and 93 deletions
|
|
@ -36,26 +36,36 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
|
||||
#include <eo>
|
||||
#include <migPolicy.h>
|
||||
#include <islandNotifier.h>
|
||||
|
||||
namespace paradiseo
|
||||
{
|
||||
namespace smp
|
||||
{
|
||||
|
||||
/** ContWrapper: Utility class to wrap the algorithm continuators with island notifier.
|
||||
|
||||
Utility class to wrap the algorithm continuators with island notifier during the island construction.
|
||||
|
||||
*/
|
||||
template<class EOT>
|
||||
class ContWrapper
|
||||
{
|
||||
public:
|
||||
ContWrapper(eoContinue<EOT>& _cont, Policy<EOT>& _policy) :
|
||||
ck(_cont)
|
||||
{
|
||||
ck.add(_policy);
|
||||
}
|
||||
/**
|
||||
* Constructor
|
||||
* @param _cont Original continuators
|
||||
* @param _policy Policy to wrap with continuators
|
||||
*/
|
||||
ContWrapper(eoContinue<EOT>& _cont, AIsland<EOT>* island);
|
||||
|
||||
protected:
|
||||
eoCheckPoint<EOT> ck;
|
||||
IslandNotifier<EOT> islandNotifier;
|
||||
};
|
||||
|
||||
#include <contWrapper.cpp>
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue