|
| | LCE_NtrlInit () |
| |
| virtual | ~LCE_NtrlInit () |
| |
| virtual void | execute () |
| |
| void | init_allele_freq (sex_t SEX, age_idx AGE, unsigned int size, unsigned int deme, double *values) |
| |
| virtual LifeCycleEvent * | clone () |
| |
| virtual bool | setParameters () |
| |
| virtual void | loadFileServices (FileServices *loader) |
| |
| virtual void | loadStatServices (StatServices *loader) |
| |
| virtual bool | resetParameterFromSource (std::string param, SimComponent *cmpt) |
| |
| virtual age_t | removeAgeClass () |
| |
| virtual age_t | addAgeClass () |
| |
| virtual age_t | requiredAgeClass () |
| |
| | LifeCycleEvent (const char *name, const char *trait_link) |
| | Cstor. More...
|
| |
| virtual | ~LifeCycleEvent () |
| |
| virtual void | init (Metapop *popPtr) |
| | Sets the pointer to the current Metapop and the trait link if applicable. More...
|
| |
| virtual bool | attach_trait (string trait) |
| |
| virtual void | set_paramset (std::string name, bool required, SimComponent *owner) |
| |
| virtual void | set_event_name (std::string &name) |
| | Set the name of the event (name of the ParamSet) and add the corresponding parameter to the set. More...
|
| |
| virtual void | set_event_name (const char *name) |
| |
| virtual string & | get_event_name () |
| | Accessor to the LCE's name. More...
|
| |
| virtual int | get_rank () |
| | Accessor to the LCE rank in the life cycle. More...
|
| |
| virtual void | set_pop_ptr (Metapop *popPtr) |
| | Accessors for the population pointer. More...
|
| |
| virtual Metapop * | get_pop_ptr () |
| |
| | 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_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...
|
| |
Set patch-specifiec initial genotypes values.
| void LCE_NtrlInit::execute |
( |
| ) |
|
|
virtual |
Implements LifeCycleEvent.
2672 double *values =
new double[
_nLoci];
2674 for (
unsigned int i = 0; i < patchNbr ; i++) {
2684 if(values)
delete [] values;
TMatrix _init_freq
Definition: ttneutralgenes.h:520
void init_allele_freq(sex_t SEX, age_idx AGE, unsigned int size, unsigned int deme, double *values)
Definition: ttneutralgenes.cc:2690
Metapop * _popPtr
The ptr to the current Metapop.
Definition: lifecycleevent.h:81
void getRowView(unsigned int row, unsigned int n, double *array)
Gives access to a row of the matrix.
Definition: tmatrix.h:242
@ FEM
Definition: types.h:37
@ MAL
Definition: types.h:37
#define ADULTS
Adults age class flag (breeders).
Definition: types.h:54
#define OFFSPRG
Offspring age class flag.
Definition: types.h:50
@ OFFSx
Definition: types.h:42
@ ADLTx
Definition: types.h:42
References _init_freq, _nLoci, LifeCycleEvent::_popPtr, ADLTx, ADULTS, FEM, Metapop::getCurrentGeneration(), Metapop::getPatchNbr(), TMatrix::getRowView(), init_allele_freq(), MAL, OFFSPRG, OFFSx, and Metapop::size().