13 CollectionNodes::CollectionNodes(
15 shared_ptr<const SubstitutionProcessCollection> collection) :
17 collection_(collection), context_(context)
20 const auto& paramProc =
collection_->getIndependentParameters();
22 for (
size_t i = 0; i < paramProc.size(); ++i)
29 for (
size_t i = 0; i < paramProc.size(); ++i)
31 auto vs =
collection_->getAlias(paramProc[i].getName());
33 for (
const auto& s:vs)
42 auto rN =
collection_->getRateDistributionNumbers();
50 if (!dynamic_pointer_cast<const ConstantRateDistribution>(obj))
51 distColl_.addObject(ConfiguredParametrizable::createConfigured<DiscreteDistributionInterface, ConfiguredDistribution>(this->
context(), *obj,
getParameters_(), suff), num);
75 freqColl_.addObject(ConfiguredParametrizable::createConfigured<FrequencySetInterface, ConfiguredFrequencySet>(
context_, obj,
getParameters_(), suff), num);
94 return std::dynamic_pointer_cast<ProcessTree>(
treeColl_[treeIndex]);
const Parameter & parameter(const std::string &name) const override
virtual void shareParameter_(const std::shared_ptr< Parameter > ¶meter)
ParameterList & getParameters_() override
ParametrizableCollection< ProcessTree > treeColl_
A collection of trees.
ParametrizableCollection< ConfiguredFrequencySet > freqColl_
A collection of Frequencies Sets.
std::shared_ptr< const SubstitutionProcessCollection > collection_
ParametrizableCollection< ConfiguredDistribution > distColl_
A collection of DiscreteDistributions.
std::shared_ptr< ProcessTree > getProcessTree(size_t treeIndex)
ParametrizableCollection< ConfiguredModel > modelColl_
A collection of Branch Models.
Context for dataflow node construction.
std::string toString(T t)
Defines the basic types of data flow nodes.