|
Nemo
2.4.0b
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Base class of the StatHandler class, implements the Handler interface. More...
#include <stathandler.h>
Inheritance diagram for StatHandlerBase:
Collaboration diagram for StatHandlerBase:Public Member Functions | |
| StatHandlerBase () | |
| virtual | ~StatHandlerBase () |
| virtual void | reset () |
| Empties the _stats list and calls clear() (defined in the derived class). More... | |
Accessors | |
| 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) |
Handler implementation | |
| virtual void | init () |
| virtual void | update () |
| This function is left empty as the StatServices calls StatRecorder::setVal directly. More... | |
StatHandler interface declaration | |
| virtual bool | setStatRecorders (std::string &token)=0 |
| virtual void | clear ()=0 |
Public Member Functions inherited from Handler | |
| virtual | ~Handler () |
Protected Attributes | |
| Metapop * | _pop |
| Link to the current population, set through the link to the StatService. More... | |
Private Types | |
| typedef std::list< StatRecBase * >::iterator | STAT_IT |
Private Attributes | |
| std::list< StatRecBase * > | _stats |
| Link to the StatRecorder list elements in the StatHandler derived class. More... | |
| StatServices * | _service |
| Link to the StatService. More... | |
Base class of the StatHandler class, implements the Handler interface.
This class stores the Handler state and the list of links to the StatRecBase. This list is duplicated in the StatHandler as a list of the StatRecorder templates. It allows the StatService to access the stat recorders without knowledge of the actual StatHandler and StatRecorder template type.
|
private |
|
inline |
|
inlinevirtual |
References _stats.
Referenced by StatHandler< SH >::add().
|
pure virtual |
Implemented in StatHandler< SH >, StatHandler< MPStatHandler >, and StatHandler< TTDispersalSH >.
Referenced by reset().
|
inline |
|
inline |
|
inline |
References _service, and StatServices::getCurrentOccurrence().
|
inline |
|
inline |
References _service, and StatServices::getNumOccurrences().
|
inline |
References _service, and StatServices::getOccurrence().
|
inline |
|
virtual |
Implements Handler.
Reimplemented in TTQuantiSH, TTNeutralGenesSH, and TTDispersalSH.
References _pop, fatal(), get_pop_ptr(), SIMenv::getGenerations(), and SIMenv::getReplicates().
Referenced by TTDispersalSH::init(), TTNeutralGenesSH::init(), and TTQuantiSH::init().
|
virtual |
Empties the _stats list and calls clear() (defined in the derived class).
|
inline |
|
pure virtual |
Implemented in TTWolbachiaSH, LCE_SelectionSH, TTQuantiSH, TTNeutralGenesSH, TTDispersalSH, TTDeletMutBitstrSH, TTBDMI_SH, and MPStatHandler.
|
inlinevirtual |
This function is left empty as the StatServices calls StatRecorder::setVal directly.
Implements Handler.
|
protected |
Link to the current population, set through the link to the StatService.
Referenced by TTQuantiSH::addAvgPerPatch(), TTQuantiSH::addCovarPerPatch(), TTDispersalSH::addDispPerPatch(), TTQuantiSH::addEigenPerPatch(), TTQuantiSH::addEigenValuesPerPatch(), TTQuantiSH::addEigenVect1PerPatch(), TTQuantiSH::addGenotPerPatch(), MPStatHandler::addIndNumPerPatch(), LCE_SelectionSH::addMeanPerPatch(), MPStatHandler::addPatchAge(), TTQuantiSH::addQuanti(), TTQuantiSH::addSkewPerPatch(), TTBDMI_SH::addStats(), LCE_SelectionSH::addVarPerPatch(), TTQuantiSH::addVarPerPatch(), TTNeutralGenesSH::allocateTables(), TTNeutralGenesSH::getDxy(), TTNeutralGenesSH::getDxyPerPatch(), TTDeletMutBitstrSH::getLoad(), TTDispersalSH::getMeanDispRate(), TTDispersalSH::getMeanDispRateInPatch(), TTDeletMutBitstrSH::getMeanFecWithPatchMate(), TTWolbachiaSH::getMeanFemaleInfection_perPatch(), TTDispersalSH::getMeanFemDispRate(), TTDispersalSH::getMeanMalDispRate(), TTWolbachiaSH::getMeanMaleInfection_perPatch(), TTWolbachiaSH::getMeanOffsprgFemaleInfection_perPatch(), TTWolbachiaSH::getMeanOffsprgInfection(), TTWolbachiaSH::getMeanOffsprgMaleInfection_perPatch(), LCE_SelectionSH::getMeanPatchFitness(), TTDispersalSH::getOffsprgMeanDispRate(), TTDeletMutBitstrSH::getPatchLoad(), LCE_SelectionSH::getVarPatchFitness(), init(), TTDispersalSH::init(), TTQuantiSH::init(), TTNeutralGenesSH::setAlleleTables(), TTNeutralGenesSH::setCoaMatrixRecorders(), LCE_SelectionSH::setDataTable(), TTQuantiSH::setDataTables(), TTDeletMutBitstrSH::setDeletStats(), TTNeutralGenesSH::setDxyRecorders(), TTDeletMutBitstrSH::setFst(), TTNeutralGenesSH::setFst_li(), TTNeutralGenesSH::setFstat(), TTNeutralGenesSH::setFstat2(), TTNeutralGenesSH::setFstatWeirCockerham(), TTNeutralGenesSH::setFstatWeirCockerham_MS(), TTNeutralGenesSH::setFstMatrix(), TTNeutralGenesSH::setFstMatrixRecorders(), TTNeutralGenesSH::setHeteroTable(), TTNeutralGenesSH::setHeterozygosity(), TTNeutralGenesSH::setHo(), TTNeutralGenesSH::setHo2(), TTNeutralGenesSH::setHs(), TTNeutralGenesSH::setHs2(), TTWolbachiaSH::setInfectionStats(), TTDeletMutBitstrSH::setLethalEquivalents(), TTNeutralGenesSH::setLociDivCounter(), TTDeletMutBitstrSH::setMeanViability(), TTNeutralGenesSH::setNeiGeneticDistance(), TTNeutralGenesSH::setNeiGeneticDistanceRecorders(), TTWolbachiaSH::setStatRecorders(), TTBDMI_SH::setStats(), TTQuantiSH::setStats(), MPStatHandler::setStatsForMigrantsPerPatch(), and TTDeletMutBitstrSH::setViability().
|
private |
Link to the StatService.
Referenced by get_pop_ptr(), get_service(), getCurrentOccurrence(), getNumOccurrences(), getOccurrence(), and set_service().
|
private |
Link to the StatRecorder list elements in the StatHandler derived class.
Referenced by add(), getNbRecorders(), getStats(), and reset().
1.9.1 -- Nemo is hosted on