Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
StatHandler of the Wolbachia trait. More...
#include <ttwolbachia.h>
Public Member Functions | |
TTWolbachiaSH (TProtoWolbachia *TT) | |
virtual | ~TTWolbachiaSH () |
virtual bool | setStatRecorders (string &token) |
void | setInfectionStats () |
double | getMeanInfection (unsigned int sex) |
double | getMeanOffsprgInfection (unsigned int sex) |
double | getMeanFemaleInfection_perPatch (unsigned int patch) |
double | getMeanMaleInfection_perPatch (unsigned int patch) |
double | getMeanOffsprgFemaleInfection_perPatch (unsigned int patch) |
double | getMeanOffsprgMaleInfection_perPatch (unsigned int patch) |
double | getIcompatibleMatingFreq () |
double | getDemicInfectionVar () |
double | getDemicExtinctionRate () |
![]() | |
TraitStatHandler (TProtoWolbachia *trait_proto) | |
virtual | ~TraitStatHandler () |
![]() | |
StatHandler () | |
virtual | ~StatHandler () |
virtual void | clear () |
Empties the _recorders list, they are destroyed in StatHandlerBase::reset(). More... | |
virtual StatRecorder< SH > * | 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 | init () |
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 | |
TProtoWolbachia * | _trait |
int | _TTidx |
double | _Fmean |
double | _Mmean |
double | _var |
double | _extrate |
Additional Inherited Members | |
![]() | |
typedef std::list< StatRecorder< SH > * >::iterator | REC_IT |
![]() | |
TProtoWolbachia * | _SHLinkedTrait |
Pointer to a TraitProtoype object. More... | |
int | _SHLinkedTraitIndex |
Index of the trait in the Individual::Traits table. More... | |
![]() | |
std::list< StatRecorder< SH > * > | _recorders |
The list of stat recorders. More... | |
![]() | |
Metapop * | _pop |
Link to the current population, set through the link to the StatService. More... | |
StatHandler of the Wolbachia trait.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
double TTWolbachiaSH::getIcompatibleMatingFreq | ( | ) |
double TTWolbachiaSH::getMeanFemaleInfection_perPatch | ( | unsigned int | patch | ) |
References StatHandlerBase::_pop, _TTidx, ADLTx, FEM, Patch::get(), Metapop::getPatch(), Individual::getTraitValue(), and Patch::size().
Referenced by setStatRecorders().
|
inline |
References _Fmean, and _Mmean.
Referenced by setStatRecorders().
double TTWolbachiaSH::getMeanMaleInfection_perPatch | ( | unsigned int | patch | ) |
References StatHandlerBase::_pop, _TTidx, ADLTx, Patch::get(), Metapop::getPatch(), Individual::getTraitValue(), MAL, and Patch::size().
double TTWolbachiaSH::getMeanOffsprgFemaleInfection_perPatch | ( | unsigned int | patch | ) |
References StatHandlerBase::_pop, _TTidx, FEM, Patch::get(), Metapop::getPatch(), Individual::getTraitValue(), OFFSx, and Patch::size().
double TTWolbachiaSH::getMeanOffsprgInfection | ( | unsigned int | sex | ) |
References StatHandlerBase::_pop, _TTidx, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), MAL, OFFSPRG, OFFSx, Metapop::size(), and Patch::size().
Referenced by setStatRecorders().
double TTWolbachiaSH::getMeanOffsprgMaleInfection_perPatch | ( | unsigned int | patch | ) |
References StatHandlerBase::_pop, _TTidx, Patch::get(), Metapop::getPatch(), Individual::getTraitValue(), MAL, OFFSx, and Patch::size().
void TTWolbachiaSH::setInfectionStats | ( | ) |
References _extrate, _Fmean, _Mmean, StatHandlerBase::_pop, _TTidx, _var, ADLTx, ADULTS, FEM, Patch::get(), Metapop::getPatch(), Metapop::getPatchNbr(), Individual::getTraitValue(), MAL, Metapop::size(), and Patch::size().
Referenced by setStatRecorders().
|
virtual |
Implements StatHandlerBase.
References StatHandlerBase::_pop, StatHandler< SH >::add(), ADULTS, getDemicExtinctionRate(), getDemicInfectionVar(), getMeanFemaleInfection_perPatch(), getMeanInfection(), getMeanOffsprgInfection(), Metapop::getPatchNbr(), OFFSPRG, and setInfectionStats().
|
private |
Referenced by getDemicExtinctionRate(), and setInfectionStats().
|
private |
Referenced by getMeanInfection(), and setInfectionStats().
|
private |
Referenced by getMeanInfection(), and setInfectionStats().
|
private |
|
private |
|
private |
Referenced by getDemicInfectionVar(), and setInfectionStats().