|
Nemo
2.4.0b
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
FileHandler for the DBMI trait. More...
#include <ttbdmi.h>
Inheritance diagram for TTBDMI_FH:
Collaboration diagram for TTBDMI_FH:Public Member Functions | |
| TTBDMI_FH (TProtoBDMI *TP) | |
| virtual | ~TTBDMI_FH () |
| void | write_haplo (Patch *patch, sex_t SEX, age_idx AGE, ofstream &FH) |
| void | write_diplo (Patch *patch, sex_t SEX, age_idx AGE, ofstream &FH) |
| virtual void | FHwrite () |
| virtual void | FHread (string &filename) |
Public Member Functions inherited from TraitFileHandler< TProtoBDMI > | |
| TraitFileHandler (TProtoBDMI *trait_proto, const char *ext) | |
| virtual | ~TraitFileHandler () |
| 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, TProtoBDMI *trait_proto) |
| virtual void | set_multi (bool rpl_per, bool gen_per, int rpl_occ, TMatrix *Occ, string path, TProtoBDMI *trait_proto) |
Public Member Functions inherited from FileHandler | |
| 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 | 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) |
Public Member Functions inherited from Handler | |
| virtual | ~Handler () |
Additional Inherited Members | |
Protected Attributes inherited from TraitFileHandler< TProtoBDMI > | |
| TProtoBDMI * | _FHLinkedTrait |
| int | _FHLinkedTraitIndex |
Protected Attributes inherited from FileHandler | |
| Metapop * | _pop |
| Pointer to the current metapop, set during initialization within the init function. More... | |
FileHandler for the DBMI trait.
Records the complete genotype in a text file.
|
inline |
|
inlinevirtual |
Implements FileHandler.
|
virtual |
Implements TraitFileHandler< TProtoBDMI >.
References TraitFileHandler< TProtoBDMI >::_FHLinkedTrait, FileHandler::_pop, ADLTx, fatal(), FEM, FileHandler::get_filename(), TProtoBDMI::get_num_locus(), FileServices::get_pop_ptr(), FileHandler::get_service(), Metapop::getPatch(), Metapop::getPatchNbr(), FileServices::getSampledPop(), Metapop::isAlive(), TProtoBDMI::isHaploid(), MAL, OFFSx, write_diplo(), and write_haplo().
References TraitFileHandler< TProtoBDMI >::_FHLinkedTrait, TraitFileHandler< TProtoBDMI >::_FHLinkedTraitIndex, Patch::get(), TT_BDMI::get_genome_sequence(), TProtoBDMI::get_num_locus(), Individual::getFather(), Individual::getFatherID(), Individual::getHome(), Individual::getID(), Patch::getID(), Individual::getMother(), Individual::getMotherID(), Individual::getPedigreeClass(), Individual::getSex(), Individual::getTrait(), TT_BDMI::getValue(), and Patch::size().
Referenced by FHwrite().
References TraitFileHandler< TProtoBDMI >::_FHLinkedTrait, TraitFileHandler< TProtoBDMI >::_FHLinkedTraitIndex, Patch::get(), TT_BDMI::get_genome_sequence(), TProtoBDMI::get_num_locus(), Individual::getFather(), Individual::getFatherID(), Individual::getHome(), Individual::getID(), Patch::getID(), Individual::getMother(), Individual::getMotherID(), Individual::getPedigreeClass(), Individual::getSex(), Individual::getTrait(), TT_BDMI::getValue(), and Patch::size().
Referenced by FHwrite().
1.9.1 -- Nemo is hosted on