00001 /******************************************************************* 00002 * File: UniformRng.h 00003 * Description: 00004 * Author: Subhasis Ray 00005 * E-mail: ray.subhasis@gmail.com 00006 * Created: 2008-02-01 11:52:48 00007 ********************************************************************/ 00008 /********************************************************************** 00009 ** This program is part of 'MOOSE', the 00010 ** Messaging Object Oriented Simulation Environment, 00011 ** also known as GENESIS 3 base code. 00012 ** copyright (C) 2003-2005 Upinder S. Bhalla. and NCBS 00013 ** It is made available under the terms of the 00014 ** GNU General Public License version 2 00015 ** See the file COPYING.LIB for the full notice. 00016 **********************************************************************/ 00017 00018 #ifndef _UNIFORMRNG_H 00019 #define _UNIFORMRNG_H 00020 00021 #include "randnum.h" 00022 #include "RandGenerator.h" 00023 00024 class UniformRng: public RandGenerator 00025 { 00026 public: 00027 UniformRng(); 00028 virtual ~UniformRng() { ; } 00029 double getMin() const; 00030 double getMax() const; 00031 void setMin(double min); 00032 void setMax(double max); 00033 virtual void vReinit(const Eref& e, ProcPtr p); 00034 00035 static const Cinfo * initCinfo(); 00036 private: 00037 double min_; 00038 double max_; 00039 }; 00040 00041 00042 00043 #endif