Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
The StatHandler for the evolving dispersal traits. More...
#include <ttdispersal.h>
Public Member Functions | |
TTDispersalSH (TProtoDispersal *TT) | |
virtual | ~TTDispersalSH () |
virtual void | init () |
virtual bool | setStatRecorders (std::string &token) |
void | addDispPerPatch (sex_t SEX, age_t AGE) |
double | getmeanOFD () |
double | getmeanOMD () |
double | getmeanFD () |
double | getmeanMD () |
double | getMeanDispRate () |
double | getOffsprgMeanDispRate () |
double | getMeanDispRate (sex_t sex) |
double | getOffsprgMeanDispRate (sex_t sex) |
double | getMeanFemDispRate () |
double | getMeanMalDispRate () |
double | getMeanDispRateInPatch (sex_t SEX, age_idx age, unsigned int traitidx, unsigned int i) |
double | getPatchDisp_OF (unsigned int patch) |
double | getPatchDisp_OM (unsigned int patch) |
double | getPatchDisp_AF (unsigned int patch) |
double | getPatchDisp_AM (unsigned int patch) |
![]() | |
StatHandler () | |
virtual | ~StatHandler () |
virtual void | clear () |
Empties the _recorders list, they are destroyed in StatHandlerBase::reset(). More... | |
virtual StatRecorder< TTDispersalSH > * | add (std::string Title, std::string Name, age_t AGE, unsigned int ARG1, unsigned int ARG2, double(SH::*getStatNoArg)(void), double(SH::*getStatOneArg)(unsigned int), double(SH::*getStatTwoArg)(unsigned int, unsigned int), void(SH::*setStat)(void)) |
Adds a StatRecorder to the list, it is also added to the StatHandlerBase::_stats list. More... | |
![]() | |
StatHandlerBase () | |
virtual | ~StatHandlerBase () |
virtual void | reset () |
Empties the _stats list and calls clear() (defined in the derived class). More... | |
Metapop * | get_pop_ptr () |
void | set_service (StatServices *srv) |
StatServices * | get_service () |
unsigned int | getOccurrence () |
unsigned int | getNumOccurrences () |
unsigned int | getCurrentOccurrence () |
unsigned int | getNbRecorders () |
std::list< StatRecBase * > & | getStats () |
virtual void | add (StatRecBase *rec) |
virtual void | update () |
This function is left empty as the StatServices calls StatRecorder::setVal directly. More... | |
![]() | |
virtual void | init ()=0 |
Inits state. More... | |
virtual void | update ()=0 |
Updates the handler state. More... | |
virtual | ~Handler () |
Private Attributes | |
TProtoDispersal * | _trait |
double | _meanFemDisp |
double | _meanMalDisp |
double | _meanOffFemDisp |
double | _meanOffMalDisp |
int | _fdispIdx |
int | _mdispIdx |
Additional Inherited Members | |
![]() | |
typedef std::list< StatRecorder< TTDispersalSH > * >::iterator | REC_IT |
![]() | |
std::list< StatRecorder< TTDispersalSH > * > | _recorders |
The list of stat recorders. More... | |
![]() | |
Metapop * | _pop |
Link to the current population, set through the link to the StatService. More... | |
The StatHandler for the evolving dispersal traits.
|
inline |
|
inlinevirtual |
References StatHandlerBase::_pop, StatHandler< TTDispersalSH >::add(), ADULTS, FEM, getPatchDisp_AF(), getPatchDisp_AM(), getPatchDisp_OF(), getPatchDisp_OM(), Metapop::getPatchNbr(), tstring::int2str(), and OFFSPRG.
Referenced by setStatRecorders().
double TTDispersalSH::getMeanDispRate | ( | ) |
References _fdispIdx, _mdispIdx, _meanFemDisp, _meanMalDisp, StatHandlerBase::_pop, ADLTx, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), MAL, and Patch::size().
Referenced by setStatRecorders().
double TTDispersalSH::getMeanDispRate | ( | sex_t | sex | ) |
References _fdispIdx, _mdispIdx, StatHandlerBase::_pop, ADLTx, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), and Patch::size().
double TTDispersalSH::getMeanDispRateInPatch | ( | sex_t | SEX, |
age_idx | age, | ||
unsigned int | traitidx, | ||
unsigned int | i | ||
) |
References StatHandlerBase::_pop, Patch::get(), Metapop::getPatchPtr(), Individual::getTraitValue(), and Patch::size().
Referenced by getPatchDisp_AF(), getPatchDisp_AM(), getPatchDisp_OF(), and getPatchDisp_OM().
|
inline |
References _meanFemDisp.
Referenced by setStatRecorders().
double TTDispersalSH::getMeanFemDispRate | ( | ) |
References _fdispIdx, StatHandlerBase::_pop, ADLTx, ADULTS, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), Metapop::size(), and Patch::size().
double TTDispersalSH::getMeanMalDispRate | ( | ) |
References _mdispIdx, StatHandlerBase::_pop, ADLTx, ADULTS, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), MAL, Metapop::size(), and Patch::size().
|
inline |
References _meanMalDisp.
Referenced by setStatRecorders().
|
inline |
References _meanOffFemDisp.
Referenced by setStatRecorders().
|
inline |
References _meanOffMalDisp.
Referenced by setStatRecorders().
double TTDispersalSH::getOffsprgMeanDispRate | ( | ) |
References _fdispIdx, _mdispIdx, _meanOffFemDisp, _meanOffMalDisp, StatHandlerBase::_pop, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), MAL, OFFSPRG, OFFSx, Metapop::size(), and Patch::size().
Referenced by setStatRecorders().
double TTDispersalSH::getOffsprgMeanDispRate | ( | sex_t | sex | ) |
References _fdispIdx, _mdispIdx, StatHandlerBase::_pop, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), MAL, OFFSPRG, OFFSx, Metapop::size(), and Patch::size().
|
inline |
References _fdispIdx, ADLTx, FEM, and getMeanDispRateInPatch().
Referenced by addDispPerPatch().
|
inline |
References _mdispIdx, ADLTx, getMeanDispRateInPatch(), and MAL.
Referenced by addDispPerPatch().
|
inline |
References _fdispIdx, FEM, getMeanDispRateInPatch(), and OFFSx.
Referenced by addDispPerPatch().
|
inline |
References _mdispIdx, getMeanDispRateInPatch(), MAL, and OFFSx.
Referenced by addDispPerPatch().
|
inlinevirtual |
Reimplemented from StatHandlerBase.
References _fdispIdx, _mdispIdx, StatHandlerBase::_pop, FDISP, IndFactory::getTraitIndex(), StatHandlerBase::init(), and MDISP.
|
virtual |
Implements StatHandlerBase.
References StatHandler< TTDispersalSH >::add(), addDispPerPatch(), ADULTS, FEM, getMeanDispRate(), getmeanFD(), getmeanMD(), getmeanOFD(), getmeanOMD(), getOffsprgMeanDispRate(), MAL, message(), and OFFSPRG.
|
private |
Referenced by getMeanDispRate(), getMeanFemDispRate(), getOffsprgMeanDispRate(), getPatchDisp_AF(), getPatchDisp_OF(), and init().
|
private |
Referenced by getMeanDispRate(), getMeanMalDispRate(), getOffsprgMeanDispRate(), getPatchDisp_AM(), getPatchDisp_OM(), and init().
|
private |
Referenced by getMeanDispRate(), and getmeanFD().
|
private |
Referenced by getMeanDispRate(), and getmeanMD().
|
private |
Referenced by getmeanOFD(), and getOffsprgMeanDispRate().
|
private |
Referenced by getmeanOMD(), and getOffsprgMeanDispRate().
|
private |