Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
#include <LCEselection.h>
Public Member Functions | |
LCE_SelectionFH (LCE_Selection_base *event) | |
virtual | ~LCE_SelectionFH () |
virtual void | FHwrite () |
virtual void | FHread (string &filename) |
void | print (ofstream &FH, sex_t SEX, age_idx AGE, unsigned int i, Patch *patch, unsigned int ntraits) |
![]() | |
EventFileHandler (LCE_Selection_base *event, const char *ext) | |
virtual | ~EventFileHandler () |
virtual void | FHwrite ()=0 |
virtual void | FHread (string &filename)=0 |
virtual void | set (bool rpl_per, bool gen_per, int rpl_occ, int gen_occ, int rank, string path, LCE_Selection_base *event) |
![]() | |
FileHandler (const char *ext) | |
virtual | ~FileHandler () |
virtual void | init () |
Called by notifier during simulation setup, performs file checking. More... | |
virtual vector< string > | ifExist () |
Checks if any file associated with the current file name already exists on disk. More... | |
virtual void | set (bool rpl_per, bool gen_per, int rpl_occ, int gen_occ, int rank, string path) |
Sets the hanlder parameters. More... | |
virtual void | set_multi (bool rpl_per, bool gen_per, int rpl_occ, TMatrix *Occ, string path) |
virtual void | FHwrite ()=0 |
Default behavior of the class, called by Handler::update(). More... | |
virtual void | FHread (string &filename)=0 |
Default input function. More... | |
virtual void | update () |
Updates the inner replicate and generation counters and calls FHwrite if needed by the the periodicity of the file. More... | |
Metapop * | get_pop_ptr () |
Returns the pointer to the current metapop through the FileServices interface. More... | |
void | set_pop_ptr (Metapop *pop_ptr) |
FileServices * | get_service () |
Returns pointer to the FileServices. More... | |
void | set_service (FileServices *srv) |
std::string & | get_path () |
void | set_path () |
std::string & | get_extension () |
void | set_extension (const char *ext) |
std::string & | get_filename () |
Builds and returns the current file name depending on the periodicity of the file. More... | |
bool | get_isInputHandler () |
void | set_isInputHandler (bool val) |
bool | get_isReplicatePeriodic () |
void | set_isReplicatePeriodic (bool val) |
unsigned int | get_ReplicateOccurrence () |
void | set_ReplicateOccurrence (unsigned int val) |
bool | get_isGenerationPeriodic () |
void | set_isGenerationPeriodic (bool val) |
unsigned int | get_GenerationOccurrence () |
void | set_GenerationOccurrence (unsigned int val) |
unsigned int | get_ExecRank () |
unused yet... More... | |
void | set_ExecRank (int val) |
TMatrix * | get_OccMatrix () |
void | set_OccMatrix (TMatrix *occ) |
bool | get_isMasterExec () |
void | set_isMasterExec (bool is) |
![]() | |
virtual void | init ()=0 |
Inits state. More... | |
virtual void | update ()=0 |
Updates the handler state. More... | |
virtual | ~Handler () |
Additional Inherited Members | |
![]() | |
LCE_Selection_base * | _FHLinkedEvent |
![]() | |
Metapop * | _pop |
Pointer to the current metapop, set during initialization within the init function. More... | |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Implements FileHandler.
|
virtual |
Implements EventFileHandler< LCE_Selection_base >.
References EventFileHandler< LCE_Selection_base >::_FHLinkedEvent, FileHandler::_pop, LCE_Selection_base::_TraitIndices, ADLTx, fatal(), FEM, FileHandler::get_filename(), Metapop::getPatch(), Metapop::getPatchNbr(), tstring::int2str(), MAL, OFFSx, print(), and Patch::size().
void LCE_SelectionFH::print | ( | ofstream & | FH, |
sex_t | SEX, | ||
age_idx | AGE, | ||
unsigned int | i, | ||
Patch * | patch, | ||
unsigned int | ntraits | ||
) |
References EventFileHandler< LCE_Selection_base >::_FHLinkedEvent, LCE_Selection_base::_getRawFitness, LCE_Selection_base::_TraitIndices, Patch::get(), Individual::getAge(), Individual::getHome(), and Patch::size().
Referenced by FHwrite().