Nemo  2.3.46
LCEquanti.h
Go to the documentation of this file.
1 
30 #ifndef LCEQUANTI_H
31 #define LCEQUANTI_H
32 
33 #include "lifecycleevent.h"
34 #include "Uniform.h"
35 
36 //LCE_QuantiInit
37 //
39 class LCE_QuantiInit : public virtual LifeCycleEvent
40 {
41 
44  unsigned int _nTraits, _nLoci;
45 
46 public:
47 
48  LCE_QuantiInit ( );
49 
50  virtual ~LCE_QuantiInit ( ) { }
51 
52  virtual void execute ();
53  void init_trait_value(sex_t SEX, age_idx AGE, unsigned int size, unsigned int deme, double *values);
54  void init_allele_freq(sex_t SEX, age_idx AGE, unsigned int size, unsigned int deme, double *values, double **all_val);
55 
56  virtual LifeCycleEvent* clone ( ) {return new LCE_QuantiInit();}
57 
58  virtual bool setParameters ();
59 
60  //SimComponent implementation:
61  virtual void loadFileServices ( FileServices* loader ) {}
62  virtual void loadStatServices ( StatServices* loader ) {}
63  virtual age_t removeAgeClass ( ) {return 0;}
64  virtual age_t addAgeClass ( ) {return 0;}
65  virtual age_t requiredAgeClass () {return 0;}
66 
67 };
68 
69 
70 
71 //LCE_NtrlInit
72 //
74 class LCE_NtrlInit : public virtual LifeCycleEvent
75 {
76 
78  unsigned int _nLoci;
79 
80 public:
81 
82  LCE_NtrlInit ( );
83 
84  virtual ~LCE_NtrlInit ( ) { }
85 
86  virtual void execute ();
87 
88  void init_allele_freq(sex_t SEX, age_idx AGE, unsigned int size, unsigned int deme, double *values);
89 
90  virtual LifeCycleEvent* clone ( ) {return new LCE_NtrlInit();}
91 
92  virtual bool setParameters ();
93 
94  //SimComponent implementation:
95  virtual void loadFileServices ( FileServices* loader ) {}
96  virtual void loadStatServices ( StatServices* loader ) {}
97  virtual age_t removeAgeClass ( ) {return 0;}
98  virtual age_t addAgeClass ( ) {return 0;}
99  virtual age_t requiredAgeClass () {return 0;}
100 
101 };
102 
103 #endif
virtual void execute()
Definition: LCEquanti.cc:99
virtual age_t removeAgeClass()
Definition: LCEquanti.h:97
bool _doByAlleleFreq
Definition: LCEquanti.h:43
LCE_NtrlInit()
Definition: LCEquanti.cc:213
virtual LifeCycleEvent * clone()
Definition: LCEquanti.h:90
The Service class used to manage the StatHandler objects.
Definition: statservices.h:50
age_idx
Array index of the age classes in the patch sizes and containers arrays.
Definition: types.h:41
virtual void loadFileServices(FileServices *loader)
Definition: LCEquanti.h:95
virtual age_t removeAgeClass()
Definition: LCEquanti.h:63
virtual void loadFileServices(FileServices *loader)
Definition: LCEquanti.h:61
unsigned int age_t
Age class flags.
Definition: types.h:46
virtual age_t requiredAgeClass()
Definition: LCEquanti.h:99
virtual void loadStatServices(StatServices *loader)
Definition: LCEquanti.h:96
LCE_QuantiInit()
Definition: LCEquanti.cc:41
virtual age_t addAgeClass()
Definition: LCEquanti.h:98
void init_trait_value(sex_t SEX, age_idx AGE, unsigned int size, unsigned int deme, double *values)
Definition: LCEquanti.cc:146
void init_allele_freq(sex_t SEX, age_idx AGE, unsigned int size, unsigned int deme, double *values)
Definition: LCEquanti.cc:268
virtual bool setParameters()
Definition: LCEquanti.cc:50
Set patch-specifiec initial genotypes values.
Definition: LCEquanti.h:74
virtual age_t addAgeClass()
Definition: LCEquanti.h:64
unsigned int _nTraits
Definition: LCEquanti.h:44
virtual ~LCE_NtrlInit()
Definition: LCEquanti.h:84
sex_t
Sex types, males are always 0 and females 1!!
Definition: types.h:36
virtual LifeCycleEvent * clone()
Definition: LCEquanti.h:56
virtual void loadStatServices(StatServices *loader)
Definition: LCEquanti.h:62
TMatrix _init_values
Definition: LCEquanti.h:42
unsigned int _nLoci
Definition: LCEquanti.h:44
A class to handle matrix in params, coerces matrix into a vector of same total size.
Definition: tmatrix.h:49
Set patch-specifiec initial genotypes values.
Definition: LCEquanti.h:39
virtual age_t requiredAgeClass()
Definition: LCEquanti.h:65
virtual ~LCE_QuantiInit()
Definition: LCEquanti.h:50
unsigned int _nLoci
Definition: LCEquanti.h:78
virtual bool setParameters()
Definition: LCEquanti.cc:220
void init_allele_freq(sex_t SEX, age_idx AGE, unsigned int size, unsigned int deme, double *values, double **all_val)
Definition: LCEquanti.cc:164
A class to manage the files associated with each components of the simulation.
Definition: fileservices.h:51
TMatrix _init_freq
Definition: LCEquanti.h:42
bool _doByTraitValue
Definition: LCEquanti.h:43
virtual void execute()
Definition: LCEquanti.cc:244
Base class of the Life Cycle Events, declares the LCE interface.
Definition: lifecycleevent.h:72
TMatrix _init_freq
Definition: LCEquanti.h:77

Generated for Nemo v2.3.0 by  doxygen 1.8.8 --
Catalogued on GSR