Simpact Cyan
Population based event driven simulation using mNRM
vspmodel.h
1 #ifndef VSPMODEL_H
2 
3 #define VSPMODEL_H
4 
5 #include <errut/errorbase.h>
6 #include <assert.h>
7 
9 
10 class VspModel : public errut::ErrorBase
11 {
12 public:
13  VspModel(GslRandomNumberGenerator *pRndGen) : m_pRndGen(pRndGen) { assert(pRndGen != 0); }
14  ~VspModel() { }
15 
16  virtual double pickSetPointViralLoad() = 0;
17  virtual double inheritSetPointViralLoad(double VspInfector) = 0;
18  GslRandomNumberGenerator *getRandomNumberGenerator() const { assert(m_pRndGen != 0); return m_pRndGen; }
19 private:
20  mutable GslRandomNumberGenerator *m_pRndGen;
21 };
22 
23 #endif // VSPMODEL_H
24 
Base class which allows an error message to be set.
Definition: errorbase.h:49
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16