ECF 1.5
Migration.h
1#ifndef Migration_h
2#define Migration_h
3
10class Migration : public Operator
11{
12protected:
13 StateP state_;
14 uint migFrequency_;
15 uint nEmigrants_;
16 std::vector<SelectionOperatorP> selOp_;
17 static const int BEST = 0;
18 static const int RANDOM = 1;
19
20public:
26 bool operate(StateP);
27
28 bool initialize(StateP);
29
30 void registerParameters(StateP);
31
32 virtual ~Migration()
33 { }
34};
35typedef boost::shared_ptr<Migration> MigrationP;
36
37#endif // Migration_h
Migration class - handles individual migration between demes.
Definition: Migration.h:11
void registerParameters(StateP)
Register parameters with the Registry. Called before Operator::initialize.
Definition: Migration.cpp:9
bool initialize(StateP)
Perform initialization. Called before Operator::operate. By default, if the return value is false,...
Definition: Migration.cpp:21
bool operate(StateP)
Definition: Migration.cpp:60
Abstract operator class.
Definition: Operator.h:11