#ifdef CONFIGURATION
/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Configuration_Parameters.h"

namespace morpheo              {
namespace behavioural          {
    
#undef  FUNCTION
#define FUNCTION "Configuration_Parameters::Configuration_Parameters"
  Configuration_Parameters::Configuration_Parameters  (string   name   ,
						       uint32_t value  ,
						       uint32_t min    ,
						       uint32_t max    ,
						       string   step   ,
						       uint32_t value_default,
						       uint32_t level  ,
						       string   comment):
    _name    (name         ),
    _value   (value        ),
    _min     (min          ),
    _max     (max          ),
    _step    (step         ),
    _default (value_default),
    _level   (level        ),
    _comment (comment      )
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    if ((value<min) or (value>max))
      throw (ErrorMorpheo ("Parameters \""+name+"\" is out of bound : "+toString(value)+" not include in ["+toString(min)+":"+toString(max)+"]"));
    log_printf(FUNC,Behavioural,FUNCTION,"End");
  };
    

#undef  FUNCTION
#define FUNCTION "Configuration_Parameters::~Configuration_Parameters"
  Configuration_Parameters::~Configuration_Parameters () 
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    log_printf(FUNC,Behavioural,FUNCTION,"End");
  };

}; // end namespace behavioural          
}; // end namespace morpheo              
#endif
