Migration class - handles individual migration between demes. More...
#include <Migration.h>
Public Member Functions | |
bool | operate (StateP) |
bool | initialize (StateP) |
Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used! | |
void | registerParameters (StateP) |
Register parameters with the Registry. Called before Operator::initialize. | |
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 10 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 21 of file Migration.cpp.
bool Migration::operate | ( | StateP | state | ) | [virtual] |
Performs migration with current parameters:
Implements Operator.
Definition at line 60 of file Migration.cpp.