|
| TProtoBDMI () |
|
| TProtoBDMI (const TProtoBDMI &TP) |
|
virtual | ~TProtoBDMI () |
|
int | get_nb_locus () |
|
double | get_mut_rate () |
|
bool | isHaploid () |
|
void | set_init_freq (double *val, unsigned int size) |
|
double | get_init_freq (unsigned int i) |
|
bool | isInitSet () |
|
double | getGenoFitnessHaplo (unsigned int row, unsigned int pos) |
|
double | getGenoFitnessDiplo (unsigned int row, unsigned int posA, unsigned int posB) |
|
double | getGenoFitnessDiplo (unsigned int row, unsigned int pos) |
|
void | setGenoFitnessValue (unsigned int row, unsigned int geno, double value) |
|
void | showGenoTable (unsigned int nrows) |
|
void | inherit (sex_t SEX, bitstring *seq, bitstring **parent) |
|
|
|
virtual void | init () |
|
virtual TTrait * | hatch () |
|
virtual TraitPrototype * | clone () |
|
virtual trait_t | get_type () const |
|
virtual void | store_data (BinaryStorageBuffer *saver) |
|
virtual bool | retrieve_data (BinaryStorageBuffer *reader) |
|
virtual bool | setParameters () |
|
virtual void | loadFileServices (FileServices *loader) |
|
virtual void | loadStatServices (StatServices *loader) |
|
virtual bool | resetParameterFromSource (std::string param, SimComponent *cmpt) |
|
| TTProtoWithMap () |
|
| TTProtoWithMap (const TTProtoWithMap &TP) |
|
virtual | ~TTProtoWithMap () |
|
void | setMapIndex (unsigned int idx) |
|
unsigned int | getMapIndex () |
|
bool | setGeneticMapParameters (string prefix) |
|
void | addGeneticMapParameters (string prefix) |
|
bool | setRecombinationMapRandom () |
|
bool | setRecombinationMapNonRandom (vector< vector< double > > *lociPositions) |
|
bool | setRecombinationMapFixed () |
|
bool | setNumLociPerChromosome (string param_name) |
|
void | reset_recombination_pointers () |
|
void | registerGeneticMap () |
|
void | unregisterFromGeneticMap () |
|
bool | areGeneticMapParamSet (string prefix) |
|
bool | isRecombinationFree (string prefix) |
|
void | recordRandomMap () |
|
virtual void | reset () |
|
virtual void | reset ()=0 |
| Called at the end of a simulation to reset the Traits' prototypes (e.g. More...
|
|
virtual TTrait * | hatch ()=0 |
| Creates the trait of which it is the prototype, called by IndFactory::makePrototype() . More...
|
|
virtual TraitPrototype * | clone ()=0 |
| Returns a copy of itself. More...
|
|
virtual trait_t | get_type () const =0 |
| Type accessor. More...
|
|
virtual void | set_index (int idx) |
| Sets the traits index. More...
|
|
virtual int | get_index () |
| Index getter. More...
|
|
virtual void | store_data (BinaryStorageBuffer *saver)=0 |
| Interface to store the component data (e.g. gene values) into a binary buffer. More...
|
|
virtual bool | retrieve_data (BinaryStorageBuffer *reader)=0 |
| Interface to retrieve the same data from the binary buffer. More...
|
|
virtual | ~StorableComponent () |
|
| SimComponent () |
|
virtual | ~SimComponent () |
|
virtual void | loadUpdaters (UpdaterServices *loader) |
| Loads the parameters and component updater onto the updater manager. More...
|
|
virtual void | set_paramset (ParamSet *paramset) |
| Sets the ParamSet member. More...
|
|
virtual void | set_paramset (std::string name, bool required, SimComponent *owner) |
| Sets a new ParamSet and name it. More...
|
|
virtual void | set_paramsetFromCopy (const ParamSet &PSet) |
| Reset the set of parameters from a another set. More...
|
|
virtual ParamSet * | get_paramset () |
| ParamSet accessor. More...
|
|
virtual void | add_parameter (Param *param) |
| Interface to add a parameter to the set. More...
|
|
virtual void | add_parameter (std::string Name, param_t Type, bool isRequired, bool isBounded, double low_bnd, double up_bnd) |
| Interface to add a parameter to the set. More...
|
|
virtual void | add_parameter (std::string Name, param_t Type, bool isRequired, bool isBounded, double low_bnd, double up_bnd, ParamUpdaterBase *updater) |
| Interface to add a parameter and its updater to the set. More...
|
|
virtual Param * | get_parameter (std::string name) |
| Param getter. More...
|
|
virtual double | get_parameter_value (std::string name) |
| Param value getter. More...
|
|
virtual string | get_name () |
| Returnd the name of the ParamSet, i.e. More...
|
|
virtual bool | has_parameter (std::string name) |
| Param getter. More...
|
|
bool TProtoBDMI::setParameters |
( |
| ) |
|
|
virtual |
Implements SimComponent.
89{
92
95 else
97
99
104 } else {
108 }
109
110
112
114
116
117
119 return error(
"The genotype fitness table for DMI loci must have 4 columns in the haploid case.");
120
122 return error(
"The genotype fitness table for DMI loci must have 9 columns in the diploid case.");
123
124
126
127#ifdef _DEBUG_
128 message(
"::TProtoBDMI::\nFitness table:\n");
130#endif
131
133}
virtual double get_parameter_value(std::string name)
Param value getter.
Definition: simcomponent.h:143
unsigned int getNbCols()
Gives the number of columns.
Definition: tmatrix.h:169
void showGenoTable(unsigned int nrows)
Definition: ttbdmi.cc:212
bool setGeneticMapParameters(string prefix)
Definition: ttrait_with_map.cc:125
void mutate_diplo()
Definition: ttbdmi.cc:469
void inherit_diplo(TTrait *mother, TTrait *father)
Definition: ttbdmi.cc:430
double viability_diplo()
Definition: ttbdmi.cc:500
double viability_haplo()
Definition: ttbdmi.cc:485
void inherit_haplo(TTrait *mother, TTrait *father)
Definition: ttbdmi.cc:441
void mutate_haplo()
Definition: ttbdmi.cc:453
int error(const char *str,...)
Definition: output.cc:77
void message(const char *message,...)
Definition: output.cc:40
References _genomic_mut_rate, _genoTable, _inherit_func_ptr, _isHaploid, _isInitSet, _mut_rate, _mutation_func_ptr, _nb_locus, _viability_func_ptr, error(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), Param::getMatrix(), TMatrix::getNbCols(), TT_BDMI::inherit_diplo(), TT_BDMI::inherit_haplo(), message(), TT_BDMI::mutate_diplo(), TT_BDMI::mutate_haplo(), TTProtoWithMap::setGeneticMapParameters(), showGenoTable(), TT_BDMI::viability_diplo(), and TT_BDMI::viability_haplo().
Referenced by init().