41 #ifndef BPP_NUMERIC_PARAMETRIZABLE_H
42 #define BPP_NUMERIC_PARAMETRIZABLE_H
47 #include "../Clonable.h"
The Clonable interface (allow an object to be cloned).
The parameter list object.
virtual bool hasParameter(const std::string &name) const
This class is designed to facilitate the manipulation of parameters.
A low-level implementation of the Parametrizable interface with void functions.
void setParametersValues(const ParameterList ¶meters)
Update the parameters from parameters.
bool hasParameter(const std::string &name) const
Tell if there is a parameter with specified name.
size_t getNumberOfParameters() const
Get the number of parameters.
std::string getNamespace() const
std::string getParameterNameWithoutNamespace(const std::string &name) const
Resolves a parameter name according to the current namespace.
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.
void setNamespace(const std::string &prefix)
Set the namespace for the parameter names.
void setParameterValue(const std::string &name, double value)
Set the value of parameter with name name to be equal to value.
virtual ~ParametrizableAdapter()
void setAllParametersValues(const ParameterList ¶meters)
Set the parameters values to be equals to those of parameters.
const ParameterList & getParameters() const
Get all parameters available.
bool matchParametersValues(const ParameterList ¶meters)
Update the parameters from parameters.
ParameterList parameters_
const Parameter & getParameter(const std::string &name) const
Get the parameter with specified name.
This is the interface for all objects that imply parameters.
virtual std::string getParameterNameWithoutNamespace(const std::string &name) const =0
Resolves a parameter name according to the current namespace.
virtual size_t getNumberOfParameters() const =0
Get the number of parameters.
virtual ~Parametrizable()
virtual bool matchParametersValues(const ParameterList ¶meters)=0
Update the parameters from parameters.
virtual std::string getNamespace() const =0
virtual void setAllParametersValues(const ParameterList ¶meters)=0
Set the parameters values to be equals to those of parameters.
virtual double getParameterValue(const std::string &name) const =0
Get the value for parameter of name 'name'.
virtual const Parameter & getParameter(const std::string &name) const =0
Get the parameter with specified name.
virtual const ParameterList & getParameters() const =0
Get all parameters available.
virtual ParameterList & getParameters_()=0
Get all parameters available.
virtual bool hasParameter(const std::string &name) const =0
Tell if there is a parameter with specified name.
virtual void setParameterValue(const std::string &name, double value)=0
Set the value of parameter with name name to be equal to value.
virtual void setParametersValues(const ParameterList ¶meters)=0
Update the parameters from parameters.
virtual void setNamespace(const std::string &prefix)=0
Set the namespace for the parameter names.