|
Nemo
2.4.0b
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
#include <ttrait.h>
Inheritance diagram for TraitPrototype:
Collaboration diagram for TraitPrototype:Public Member Functions | |
| 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 int | get_phenotype_dimension ()=0 |
| Returns the dimension of the phenotype of the trait (size of the array accessed with TTrait::getValue() More... | |
| virtual int | get_allele_number ()=0 |
| Returns the number of allele per locus. More... | |
| virtual int | get_locus_number ()=0 |
| Returns the number of locus. More... | |
| virtual bool | is_mappable ()=0 |
| Checks if the trait is mappable, i.e., if the loci can be placed on a genetic map. More... | |
| virtual bool | is_mapped ()=0 |
| Checks if the trait's loci are placed on a genetic map. More... | |
| virtual vector< unsigned int > | get_locus_map_positions ()=0 |
| Returns the map positions of the loci in vector. More... | |
Public Member Functions inherited from StorableComponent | |
| 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 () |
Public Member Functions inherited from SimComponent | |
| SimComponent () | |
| virtual | ~SimComponent () |
| virtual void | loadFileServices (FileServices *loader)=0 |
| Loads the component's FileHandler onto the FileServices. More... | |
| virtual void | loadStatServices (StatServices *loader)=0 |
| Loads the component's StatHandler onto the StatServices. More... | |
| virtual void | loadUpdaters (UpdaterServices *loader) |
| Loads the parameters and component updater onto the updater manager. More... | |
| virtual bool | setParameters ()=0 |
| Default interface needed to initialize the component's variables from its input parameters value. 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... | |
| virtual bool | resetParameterFromSource (std::string param, SimComponent *cmpt)=0 |
Protected Attributes | |
| int | _index |
| The trait index in the Individual traits table. More... | |
Protected Attributes inherited from SimComponent | |
| ParamSet * | _paramSet |
| The parameters container. More... | |
TTrait setter.
Encapsulates the methods to set the traits parameters and to generate traits. Also stores the position of the trait in the individuals trait table. This class manages the file and stat handlers through its inheritance of the SimComponent interface.
|
pure virtual |
Returns a copy of itself.
Note: calls the copy constructor and only copy the parameters state.
Implemented in TProtoWolbachia, TProtoQuanti, TProtoNeutralGenes, TProtoDispersal, TProtoDeletMutations_bitstring, and TProtoBDMI.
|
pure virtual |
Returns the number of allele per locus.
Implemented in TProtoWolbachia, TProtoQuanti, TProtoNeutralGenes, TProtoDispersal, TProtoDeletMutations_bitstring, and TProtoBDMI.
Referenced by LCE_FileServicesNotifier::setGenotyperParameters().
|
inlinevirtual |
Index getter.
References _index.
Referenced by GenotyperFH::collate_trait_map_positions(), TTProtoWithMap::get_locus_map_positions(), GenotyperFH::prepare_data_table(), and LCE_FileServicesNotifier::setGenotyperParameters().
|
pure virtual |
Returns the map positions of the loci in vector.
Implemented in TProtoWolbachia, TTProtoWithMap, and TProtoDispersal.
Referenced by GenotyperFH::collate_trait_map_positions().
|
pure virtual |
Returns the number of locus.
Implemented in TProtoWolbachia, TProtoQuanti, TProtoNeutralGenes, TProtoDispersal, TProtoDeletMutations_bitstring, and TProtoBDMI.
Referenced by TTProtoWithMap::get_locus_map_positions(), and GenotyperFH::prepare_data_table().
|
pure virtual |
Returns the dimension of the phenotype of the trait (size of the array accessed with TTrait::getValue()
Implemented in TProtoWolbachia, TProtoQuanti, TProtoNeutralGenes, TProtoDispersal, TProtoDeletMutations_bitstring, and TProtoBDMI.
|
pure virtual |
Type accessor.
Implemented in TProtoWolbachia, TProtoQuanti, TProtoNeutralGenes, TProtoDispersal, TProtoDeletMutations_bitstring, and TProtoBDMI.
Referenced by TTProtoWithMap::get_locus_map_positions(), TTProtoWithMap::is_mapped(), TTProtoWithMap::registerGeneticMap(), TTProtoWithMap::reset(), TTProtoWithMap::setGeneticMapParameters(), and TTProtoWithMap::unregisterFromGeneticMap().
|
pure virtual |
Creates the trait of which it is the prototype, called by IndFactory::makePrototype().
Implemented in TProtoWolbachia, TProtoQuanti, TProtoNeutralGenes, TProtoDispersal, TProtoDeletMutations_bitstring, and TProtoBDMI.
|
pure virtual |
Checks if the trait is mappable, i.e., if the loci can be placed on a genetic map.
Implemented in TProtoWolbachia, TTProtoWithMap, and TProtoDispersal.
Referenced by LCE_FileServicesNotifier::setGenotyperParameters().
|
pure virtual |
Checks if the trait's loci are placed on a genetic map.
Implemented in TProtoWolbachia, TTProtoWithMap, and TProtoDispersal.
|
pure virtual |
Called at the end of a simulation to reset the Traits' prototypes (e.g.
unregister genetic maps). Called by IndFactory::clearPrototype.
Implemented in TProtoWolbachia, TTProtoWithMap, TProtoQuanti, TProtoNeutralGenes, TProtoDispersal, and TProtoDeletMutations_bitstring.
|
inlinevirtual |
|
protected |
The trait index in the Individual traits table.
Referenced by get_index(), and set_index().
1.9.1 -- Nemo is hosted on