5 #ifndef BPP_PHYL_MODEL_FROMMIXTURESUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_FROMMIXTURESUBSTITUTIONMODEL_H
30 std::unique_ptr<SubstitutionModelInterface>
subModel_;
40 const std::string& subModelName,
const std::string& mixtDesc);
44 size_t subModelNumber,
45 const std::string& mixtDesc);
void addParameter_(Parameter *parameter)
void setNamespace(const std::string &prefix)
std::string getNamespace() const override
double getRate() const override
Get the rate.
const BranchModelInterface & model() const override
BranchModelInterface & model_()
virtual std::string getName() const =0
Get the name of the model.
virtual void addRateParameter()=0
Model taken from a SubModel of a Mixture of SubstitutionModels.
SubstitutionModelInterface & substitutionModel_() override
virtual ~FromMixtureSubstitutionModel()
void fireParameterChanged(const ParameterList ¶meters) override
Tells the model that a parameter value has changed.
virtual void addRateParameter() override
FromMixtureSubstitutionModel & operator=(const FromMixtureSubstitutionModel &fmsm)
std::unique_ptr< SubstitutionModelInterface > subModel_
The subModel taken from the AbstractTotallyWrappedSubstitutionModel.
std::string mixtName_
The name of the mixture model (for io purpose).
FromMixtureSubstitutionModel(const MixedTransitionModelInterface &mixedModel, const std::string &subModelName, const std::string &mixtDesc)
std::string getName() const override
Get the name of the model.
const SubstitutionModelInterface & substitutionModel() const override
virtual void setNamespace(const std::string &name) override
FromMixtureSubstitutionModel * clone() const override
Interface for Transition models, defined as a mixture of "simple" transition models.
static const std::shared_ptr< IntervalConstraint > R_PLUS_STAR
virtual bool matchParametersValues(const ParameterList ¶meters)=0
virtual void setNamespace(const std::string &prefix)=0
Interface for all substitution models.
Defines the basic types of data flow nodes.