40 #ifndef _PARAMETRIZABLE_H_ 41 #define _PARAMETRIZABLE_H_ 44 #include "../Clonable.h" 73 virtual bool hasParameter(
const std::string& name)
const = 0;
167 virtual void setNamespace(
const std::string& prefix) = 0;
229 #endif //_PARAMETRIZABLE_H_ virtual bool matchParametersValues(const ParameterList ¶meters)=0
Update the parameters from parameters.
Exception thrown when a parameter is not found, for instance in a ParameterList.
std::string getNamespace() const
virtual ~ParametrizableAdapter()
virtual void setParameterValue(const std::string &name, double value)=0
Set the value of parameter with name name to be equal to value.
This class allows to perform a correspondence analysis.
ParameterList parameters_
virtual double getParameterValue(const std::string &name) const =0
Get the value for parameter of name 'name'.
virtual std::string getNamespace() const =0
size_t getNumberOfParameters() const
Get the number of parameters.
virtual const ParameterList & getParameters() const =0
Get all parameters available.
This class is designed to facilitate the manipulation of parameters.
virtual void setParametersValues(const ParameterList ¶meters)=0
Update the parameters from parameters.
A low-level implementation of the Parametrizable interface with void functions.
This is the interface for all objects that imply parameters.
bool hasParameter(const std::string &name) const
Tell if there is a parameter with specified name.
The parameter list object.
void setNamespace(const std::string &prefix)
Set the namespace for the parameter names.
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'.
virtual bool hasParameter(const std::string &name) const
virtual void setAllParametersValues(const ParameterList ¶meters)=0
Set the parameters values to be equals to those of parameters.
bool matchParametersValues(const ParameterList ¶meters)
Update the parameters from parameters.
const ParameterList & getParameters() const
Get all parameters available.
virtual std::string getParameterNameWithoutNamespace(const std::string &name) const =0
Resolves a parameter name according to the current namespace.
void setParametersValues(const ParameterList ¶meters)
Update the parameters from parameters.
The Clonable interface (allow an object to be cloned).
virtual ~Parametrizable()
virtual const Parameter & getParameter(const std::string &name) const =0
Get the parameter with specified name.
Exception thrown when a value do not match a given constraint.
virtual void setNamespace(const std::string &prefix)=0
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.
void setAllParametersValues(const ParameterList ¶meters)
Set the parameters values to be equals to those of parameters.
virtual bool hasParameter(const std::string &name) const =0
Tell if there is a parameter with specified name.
const Parameter & getParameter(const std::string &name) const
Get the parameter with specified name.
virtual size_t getNumberOfParameters() const =0
Get the number of parameters.