bpp-phyl3  3.0.0
bpp::CollectionNodes Class Reference

#include <Bpp/Phyl/Likelihood/DataFlow/CollectionNodes.h>

+ Inheritance diagram for bpp::CollectionNodes:
+ Collaboration diagram for bpp::CollectionNodes:

Public Member Functions

 CollectionNodes (Context &context, std::shared_ptr< const SubstitutionProcessCollection > collection)
 
CollectionNodesclone () const
 
Contextcontext ()
 
const SubstitutionProcessCollectioncollection () const
 
std::shared_ptr< const SubstitutionProcessCollectiongetCollection () const
 
ConfiguredModelmodel (size_t modelIndex)
 
std::shared_ptr< ConfiguredModelgetModel (size_t modelIndex)
 
ParametrizableCollection< ConfiguredModel > & getModelCollection ()
 
std::shared_ptr< ConfiguredFrequencySetgetFrequencies (size_t freqIndex)
 
std::shared_ptr< ConfiguredDistributiongetRateDistribution (size_t distIndex)
 
std::shared_ptr< ProcessTreegetProcessTree (size_t treeIndex)
 
bool hasParameter (const std::string &name) const override
 
const ParameterListgetParameters () const override
 
const Parameterparameter (const std::string &name) const override
 
const std::shared_ptr< Parameter > & getParameter (const std::string &name) const
 
double getParameterValue (const std::string &name) const override
 
void setAllParametersValues (const ParameterList &parameters) override
 
void setParameterValue (const std::string &name, double value) override
 
void setParametersValues (const ParameterList &parameters) override
 
bool matchParametersValues (const ParameterList &parameters) override
 
void removeConstraint (const std::string &name) override
 
void setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint) override
 
size_t getNumberOfParameters () const override
 
void setNamespace (const std::string &prefix) override
 
std::string getNamespace () const override
 
std::string getParameterNameWithoutNamespace (const std::string &name) const override
 
virtual void fireParameterChanged (const ParameterList &parameters)
 

Protected Member Functions

const std::shared_ptr< Parameter > & getParameter (size_t i) const
 
std::shared_ptr< Parameter > & getParameter (size_t i)
 
virtual void addParameter_ (Parameter *parameter)
 
virtual void addParameters_ (const ParameterList &parameters)
 
virtual void shareParameter_ (const std::shared_ptr< Parameter > &parameter)
 
virtual void shareParameters_ (const ParameterList &parameters)
 
virtual void includeParameters_ (const ParameterList &parameters)
 
virtual void deleteParameter_ (size_t index)
 
virtual void deleteParameter_ (std::string &name)
 
virtual void deleteParameters_ (const std::vector< std::string > &names)
 
void resetParameters_ ()
 
ParametergetParameter_ (const std::string &name)
 
ParametergetParameter_ (size_t index)
 
const ParametergetParameter_ (size_t index) const
 
ParametergetParameterWithNamespace_ (const std::string &name)
 
const ParametergetParameterWithNamespace_ (const std::string &name) const
 
ParameterListgetParameters_ () override
 

Private Attributes

std::shared_ptr< const SubstitutionProcessCollectioncollection_
 
Contextcontext_
 
ParametrizableCollection< ConfiguredModelmodelColl_
 A collection of Branch Models. More...
 
ParametrizableCollection< ConfiguredFrequencySetfreqColl_
 A collection of Frequencies Sets. More...
 
ParametrizableCollection< ConfiguredDistributiondistColl_
 A collection of DiscreteDistributions. More...
 
ParametrizableCollection< ProcessTreetreeColl_
 A collection of trees. More...
 
ParameterList parameters_
 
std::string prefix_
 

Detailed Description

Construction of all the DataFlow objects linked with objects in a SubstitutionProcessCollection.

Definition at line 23 of file CollectionNodes.h.

Constructor & Destructor Documentation

◆ CollectionNodes()

Member Function Documentation

◆ clone()

CollectionNodes* bpp::CollectionNodes::clone ( ) const
inlinevirtual

Implements bpp::AbstractParametrizable.

Definition at line 56 of file CollectionNodes.h.

◆ collection()

const SubstitutionProcessCollection& bpp::CollectionNodes::collection ( ) const
inline

◆ context()

Context& bpp::CollectionNodes::context ( )
inline

Definition at line 61 of file CollectionNodes.h.

References context_.

Referenced by CollectionNodes().

◆ getCollection()

std::shared_ptr<const SubstitutionProcessCollection> bpp::CollectionNodes::getCollection ( ) const
inline

Definition at line 71 of file CollectionNodes.h.

References collection_.

◆ getFrequencies()

std::shared_ptr<ConfiguredFrequencySet> bpp::CollectionNodes::getFrequencies ( size_t  freqIndex)
inline

Definition at line 91 of file CollectionNodes.h.

References freqColl_.

Referenced by bpp::LikelihoodCalculationSingleProcess::makeProcessNodes_().

◆ getModel()

std::shared_ptr<ConfiguredModel> bpp::CollectionNodes::getModel ( size_t  modelIndex)
inline

Definition at line 81 of file CollectionNodes.h.

References modelColl_.

◆ getModelCollection()

ParametrizableCollection<ConfiguredModel>& bpp::CollectionNodes::getModelCollection ( )
inline

Definition at line 86 of file CollectionNodes.h.

References modelColl_.

Referenced by bpp::ProcessTree::makeProcessTree().

◆ getProcessTree()

std::shared_ptr< ProcessTree > CollectionNodes::getProcessTree ( size_t  treeIndex)

Definition at line 92 of file CollectionNodes.cpp.

References treeColl_.

Referenced by bpp::ProcessTree::makeProcessTree().

◆ getRateDistribution()

std::shared_ptr<ConfiguredDistribution> bpp::CollectionNodes::getRateDistribution ( size_t  distIndex)
inline

Definition at line 96 of file CollectionNodes.h.

References distColl_.

Referenced by bpp::LikelihoodCalculationSingleProcess::makeProcessNodes_().

◆ model()

ConfiguredModel& bpp::CollectionNodes::model ( size_t  modelIndex)
inline

Definition at line 76 of file CollectionNodes.h.

References modelColl_.

Member Data Documentation

◆ collection_

std::shared_ptr<const SubstitutionProcessCollection> bpp::CollectionNodes::collection_
private

Definition at line 27 of file CollectionNodes.h.

Referenced by collection(), CollectionNodes(), and getCollection().

◆ context_

Context& bpp::CollectionNodes::context_
private

Definition at line 29 of file CollectionNodes.h.

Referenced by CollectionNodes(), and context().

◆ distColl_

ParametrizableCollection<ConfiguredDistribution> bpp::CollectionNodes::distColl_
private

A collection of DiscreteDistributions.

Definition at line 44 of file CollectionNodes.h.

Referenced by CollectionNodes(), and getRateDistribution().

◆ freqColl_

ParametrizableCollection<ConfiguredFrequencySet> bpp::CollectionNodes::freqColl_
private

A collection of Frequencies Sets.

Definition at line 39 of file CollectionNodes.h.

Referenced by CollectionNodes(), and getFrequencies().

◆ modelColl_

ParametrizableCollection<ConfiguredModel> bpp::CollectionNodes::modelColl_
private

A collection of Branch Models.

Definition at line 34 of file CollectionNodes.h.

Referenced by CollectionNodes(), getModel(), getModelCollection(), and model().

◆ treeColl_

ParametrizableCollection<ProcessTree> bpp::CollectionNodes::treeColl_
private

A collection of trees.

Definition at line 49 of file CollectionNodes.h.

Referenced by CollectionNodes(), and getProcessTree().


The documentation for this class was generated from the following files: