Simpact Cyan
Population based event driven simulation using mNRM
populationstatetesting.h
Go to the documentation of this file.
1 #ifndef POPULATIONSTATETESTING_H
2 
3 #define POPULATIONSTATETESTING_H
4 
9 #include "algorithm.h"
10 #include "mutex.h"
11 #include "personbase.h"
12 #include "populationstatesimpleadvancedcommon.h"
13 #include "personaleventlisttesting.h"
14 #include <assert.h>
15 #include <vector>
16 
18 
19 class PopulationStateTesting : public PopulationStateSimpleAdvancedCommon
20 {
21 public:
22  PopulationStateTesting();
23  ~PopulationStateTesting();
24 
25  bool_t init(bool parallel);
26 private:
27  int64_t getNextPersonID();
28  void setListIndex(PersonBase *pPerson, int idx);
29  int getListIndex(PersonBase *pPerson);
30  void addAlgorithmInfo(PersonBase *pPerson);
31 
32  bool m_init;
33  bool m_parallel;
34 
35  int64_t m_nextPersonID;
36 
37  friend class PopulationAlgorithmTesting;
38 };
39 
40 #endif // POPULATIONSTATETESTING_H
41 
Type to return true/false with error description.
Definition: booltype.h:25
This is the base class for a person in a population-based simulation.
Definition: personbase.h:23
This class provides functions for a population-based simulation using the modified Next Reaction Meth...
Definition: populationalgorithmtesting.h:82