14 const std::string& subModelName,
15 const std::string& mixtDesc) :
27 auto& tm = mixedModel.
model(subModelName);
31 subModel_ = std::unique_ptr<SubstitutionModelInterface>(sm.clone());
38 throw Exception(
"FromMixtureSubstitutionModel::FromMixtureSubstitutionModel : model " + subModelName +
" is not a substitution model.");
43 throw ParameterNotFoundException(
"FromMixtureSubstitutionModel::FromMixtureSubstitutionModel : unknown model name", subModelName);
49 size_t subModelNumber,
50 const std::string& mixtDesc) :
63 auto& tm = mixedModel.
nModel(subModelNumber);
67 subModel_ = std::unique_ptr<SubstitutionModelInterface>(sm.clone());
74 throw Exception(
"FromMixtureSubstitutionModel::FromMixtureSubstitutionModel : model with number " +
TextTools::toString(subModelNumber) +
" is not a substitution model.");
88 subModel_(fmsm.subModel_->clone()),
89 mixtName_(fmsm.mixtName_)
void addParameters_(const ParameterList ¶meters)
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
std::string getNamespace() const override
Abstract class of Wrapping model class, where all methods are redirected from model().
Model taken from a SubModel of a Mixture of SubstitutionModels.
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)
Interface for Transition models, defined as a mixture of "simple" transition models.
virtual const TransitionModelInterface & nModel(size_t i) const =0
Returns a specific model from the mixture.
virtual size_t getNumberOfModels() const =0
virtual const TransitionModelInterface & model(const std::string &name) const =0
Access the submodel with the given name.
Interface for all substitution models.
std::string toString(T t)
Defines the basic types of data flow nodes.