Migration class - handles individual migration between demes. More...
#include <Migration.h>
Public Member Functions | |
| bool | operate (StateP) |
| bool | initialize (StateP) |
| void | registerParameters (StateP) |
Protected Attributes | |
| StateP | state_ |
| uint | migFrequency_ |
| uint | nEmigrants_ |
| std::vector< SelectionOperatorP > | selOp_ |
Static Protected Attributes | |
| static const int | BEST = 0 |
| static const int | RANDOM = 1 |
Migration class - handles individual migration between demes.
Note: will be reimplemented to allow proprietary user-defined migration criteria.
Definition at line 9 of file Migration.h.
| bool Migration::initialize | ( | StateP | ) | [virtual] |
Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used!
Reimplemented from Operator.
Definition at line 17 of file Migration.cpp.
| bool Migration::operate | ( | StateP | state | ) | [virtual] |
Performs migration with current parameters:
Implements Operator.
Definition at line 56 of file Migration.cpp.
| void Migration::registerParameters | ( | StateP | ) | [virtual] |
Register parameters with the Registry. Called before Operator::initialize.
Reimplemented from Operator.
Definition at line 7 of file Migration.cpp.
1.7.1