infection_state.h Source File

CPP API: infection_state.h Source File
ide_secir/infection_state.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2020-2026 MEmilio
3 *
4 * Authors: Anna Wendler, Lena Ploetzke
5 *
6 * Contact: Martin J. Kuehn <Martin.Kuehn@DLR.de>
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 #ifndef IDESECIR_INFECTIONSTATE_H
21 #define IDESECIR_INFECTIONSTATE_H
22 
23 #include <cstddef>
24 #include <array>
25 namespace mio
26 {
27 
28 namespace isecir
29 {
30 
35 enum class InfectionState
36 {
37  Susceptible = 0,
38  Exposed = 1,
40  InfectedSymptoms = 3,
41  InfectedSevere = 4,
42  InfectedCritical = 5,
43  Recovered = 6,
44  Dead = 7,
45  Count = 8
46 };
47 
53 {
64  Count = 10
65 };
66 
67 // This is an alternative implementation for the infection transitions; currently not used.
68 static constexpr size_t InfectionTransitionsCount = 10;
69 
70 static const std::array<std::pair<InfectionState, InfectionState>, InfectionTransitionsCount> InfectionTransitionsMap =
81 
82 } // namespace isecir
83 } // namespace mio
84 
85 #endif
InfectionState
The InfectionState enum describes the possible categories for the infectious state of persons.
Definition: ide_secir/infection_state.h:36
InfectionTransition
The InfectionTransition enum describes the possible transitions of the infectious state of persons.
Definition: ide_secir/infection_state.h:53
static const std::array< std::pair< InfectionState, InfectionState >, InfectionTransitionsCount > InfectionTransitionsMap
Definition: ide_secir/infection_state.h:70
static constexpr size_t InfectionTransitionsCount
Definition: ide_secir/infection_state.h:68
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30