17 ModelParamMap.insert(std::pair<std::string, boost::reference_wrapper<const double> >(
"c1", boost::cref(
c1)));
18 ModelParamMap.insert(std::pair<std::string, boost::reference_wrapper<const double> >(
"c2", boost::cref(
c2)));
19 ModelParamMap.insert(std::pair<std::string, boost::reference_wrapper<const double> >(
"c3", boost::cref(
c3)));
20 ModelParamMap.insert(std::pair<std::string, boost::reference_wrapper<const double> >(
"c4", boost::cref(
c4)));
57 for (std::map<std::string, double>::const_iterator it = DPars.begin(); it != DPars.end(); it++)
80 if(name.compare(
"c1") == 0)
82 else if(name.compare(
"c2") == 0)
84 else if(name.compare(
"c3") == 0)
86 else if(name.compare(
"c4") == 0)
96 std::cout <<
"missing mandatory myModel parameter " <<
myModelvars[i] << std::endl;
109 if(name.compare(
"condition") == 0){
virtual bool PostUpdate()
The post-update method for StandardModel.
virtual bool CheckParameters(const std::map< std::string, double > &DPars)
virtual bool Init(const std::map< std::string, double > &DPars)
virtual void setParameter(const std::string, const double &)
virtual bool Update(const std::map< std::string, double > &DPars)
virtual bool InitializeModel()
bool UpdateError
A boolean set to false if update is successful.
static const std::string myModelvars[NmyModelvars]
virtual bool InitializeModel()
A method to initialize the model.
virtual bool PostUpdate()
A model class for the Standard Model.
static const int NmyModelvars
void setModelInitialized(bool ModelInitialized)
A set method to fix the failure or success of the initialization of the model.
bool IsModelInitialized() const
A method to check if the model is initialized.
virtual bool Init(const std::map< std::string, double > &DPars)
A method to initialize the model parameters.
virtual void setParameter(const std::string name, const double &value)
A method to set the value of a parameter of StandardModel.
virtual bool PreUpdate()
The pre-update method for StandardModel.
~myModel()
myModel destructor
myModel()
myModel constructor
virtual bool CheckParameters(const std::map< std::string, double > &DPars)
A method to check if all the mandatory parameters for StandardModel have been provided in model initi...
virtual bool setFlag(const std::string name, const bool value)
virtual bool setFlag(const std::string name, const bool value)
A method to set a flag of StandardModel.
std::map< std::string, boost::reference_wrapper< const double > > ModelParamMap