|
Nemo
2.4.0b
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>
Inheritance diagram for TTDispersalSH:
Collaboration diagram for TTDispersalSH: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) |
Public Member Functions inherited from StatHandler< TTDispersalSH > | |
| 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... | |
Public Member Functions inherited from StatHandlerBase | |
| 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... | |
Public Member Functions inherited from Handler | |
| virtual | ~Handler () |
Private Attributes | |
| TProtoDispersal * | _trait |
| double | _meanFemDisp |
| double | _meanMalDisp |
| double | _meanOffFemDisp |
| double | _meanOffMalDisp |
| int | _fdispIdx |
| int | _mdispIdx |
Additional Inherited Members | |
Protected Types inherited from StatHandler< TTDispersalSH > | |
| typedef std::list< StatRecorder< TTDispersalSH > * >::iterator | REC_IT |
Protected Attributes inherited from StatHandler< TTDispersalSH > | |
| std::list< StatRecorder< TTDispersalSH > * > | _recorders |
| The list of stat recorders. More... | |
Protected Attributes inherited from StatHandlerBase | |
| Metapop * | _pop |
| Link to the current population, set through the link to the StatService. More... | |
The StatHandler for the evolving dispersal traits.
|
inline |
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 | ) |
| 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 |
| 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 | ( | ) |
|
inline |
|
inline |
|
inline |
| 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 | ) |
|
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 |
1.9.1 -- Nemo is hosted on