5 #ifndef BPP_PHYL_LIKELIHOOD_DATAFLOW_COLLECTIONNODES_H
6 #define BPP_PHYL_LIKELIHOOD_DATAFLOW_COLLECTIONNODES_H
27 std::shared_ptr<const SubstitutionProcessCollection>
collection_;
54 std::shared_ptr<const SubstitutionProcessCollection>
collection);
58 throw Exception(
"CollectionNodes::clone should not be called.");
71 std::shared_ptr<const SubstitutionProcessCollection>
getCollection()
const
81 std::shared_ptr<ConfiguredModel>
getModel(
size_t modelIndex)
83 return std::dynamic_pointer_cast<ConfiguredModel>(
modelColl_[modelIndex]);
93 return std::dynamic_pointer_cast<ConfiguredFrequencySet>(
freqColl_[freqIndex]);
98 return std::dynamic_pointer_cast<ConfiguredDistribution>(
distColl_[distIndex]);
ParametrizableCollection< ProcessTree > treeColl_
A collection of trees.
ConfiguredModel & model(size_t modelIndex)
CollectionNodes * clone() const
ParametrizableCollection< ConfiguredModel > & getModelCollection()
ParametrizableCollection< ConfiguredFrequencySet > freqColl_
A collection of Frequencies Sets.
std::shared_ptr< ConfiguredFrequencySet > getFrequencies(size_t freqIndex)
std::shared_ptr< const SubstitutionProcessCollection > collection_
std::shared_ptr< ConfiguredDistribution > getRateDistribution(size_t distIndex)
const SubstitutionProcessCollection & collection() const
CollectionNodes(Context &context, std::shared_ptr< const SubstitutionProcessCollection > collection)
ParametrizableCollection< ConfiguredDistribution > distColl_
A collection of DiscreteDistributions.
std::shared_ptr< ProcessTree > getProcessTree(size_t treeIndex)
std::shared_ptr< ConfiguredModel > getModel(size_t modelIndex)
std::shared_ptr< const SubstitutionProcessCollection > getCollection() const
ParametrizableCollection< ConfiguredModel > modelColl_
A collection of Branch Models.
Context for dataflow node construction.
Collection of Substitution Process, which owns all the necessary objects: Substitution models,...
Defines the basic types of data flow nodes.