TestingCriteria for TestingScheme.
More...
#include <testing_strategy.h>
◆ TestingCriteria() [1/2]
| mio::abm::TestingCriteria::TestingCriteria |
( |
| ) |
|
|
default |
◆ TestingCriteria() [2/2]
| mio::abm::TestingCriteria::TestingCriteria |
( |
const std::vector< AgeGroup > & |
ages, |
|
|
const std::vector< InfectionState > & |
infection_states |
|
) |
| |
Create a TestingCriteria.
- Parameters
-
| [in] | ages | Vector of AgeGroups that are either allowed or required to be tested. |
| [in] | infection_states | Vector of InfectionStates that are either allowed or required to be tested. An empty vector of ages or none bitset of #InfectionStates% means that no condition on the corresponding property is set! |
◆ default_serialize()
| auto mio::abm::TestingCriteria::default_serialize |
( |
| ) |
|
|
inline |
◆ evaluate()
| bool mio::abm::TestingCriteria::evaluate |
( |
const Person & |
p, |
|
|
TimePoint |
t |
|
) |
| const |
Check if a Person and a Location meet all the required properties to get tested.
- Parameters
-
◆ operator==()
| bool mio::abm::TestingCriteria::operator== |
( |
const TestingCriteria & |
other | ) |
const |
◆ m_ages
Set of #AgeGroups that are either allowed or required to be tested.
◆ m_infection_states
BitSet of InfectionStates that are either allowed or required to be tested.