seapodym-parallel
Fish dynamics models with parameter estimations
Loading...
Searching...
No Matches
SeapodymCohortDependencyAnalyzer.h
1#include <map>
2#include <set>
3#include <array>
4
5#ifndef SEAPODYM_COHORT_DEPENDENCY_ANALYZER
6#define SEAPODYM_COHORT_DEPENDENCY_ANALYZER
7
28
29private:
30
31 // number of age groups
32 int numAgeGroups;
33
34 // number of time steps
35 int numTimeSteps;
36
37 // total number of cohorts
38 int numIds;
39
40 // cohort Id: number of steps
41 std::map<int, int> numStepsMap;
42
43 // cohort Id: {(taskId, step), ...}
44 std::map<int, std::set<std::array<int, 2>>> dependencyMap;
45
46public:
47
54 SeapodymCohortDependencyAnalyzer(int numAgeGroups, int numTimeSteps);
55
62 int getNumberOfCohorts() const;
63
70 int getNumberOfCohortSteps() const;
71
79 std::map<int, int> getNumStepsMap() const;
80
89 std::map<int, std::set<std::array<int, 2>>> getDependencyMap() const;
90
91};
92
93#endif // SEAPODYM_COHORT_DEPENDENCY_ANALYZER
std::map< int, std::set< std::array< int, 2 > > > getDependencyMap() const
Definition SeapodymCohortDependencyAnalyzer.cpp:66
int getNumberOfCohorts() const
Definition SeapodymCohortDependencyAnalyzer.cpp:51
SeapodymCohortDependencyAnalyzer(int numAgeGroups, int numTimeSteps)
Definition SeapodymCohortDependencyAnalyzer.cpp:3
std::map< int, int > getNumStepsMap() const
Definition SeapodymCohortDependencyAnalyzer.cpp:61
int getNumberOfCohortSteps() const
Definition SeapodymCohortDependencyAnalyzer.cpp:56