testing_strategy.h Source File
|
CPP API
|
testing_strategy.h
Go to the documentation of this file.
58 TestingCriteria(const std::vector<AgeGroup>& ages, const std::vector<InfectionState>& infection_states);
74 return Members("TestingCriteria").add("ages", m_ages).add("infection_states", m_infection_states);
99 TestingScheme(const TestingCriteria& testing_criteria, TimeSpan validity_period, TimePoint start_date,
228 bool run_and_check(PersonalRandomNumberGenerator& rng, Person& person, const Location& location, TimePoint t);
All Locations in the simulated Model where Persons gather.
Definition: location.h:92
Agents in the simulated Model that can carry and spread the Infection.
Definition: person.h:51
Random number generator of individual persons.
Definition: personal_rng.h:50
bool evaluate(const Person &p, TimePoint t) const
Check if a Person and a Location meet all the required properties to get tested.
Definition: testing_strategy.cpp:46
TestingCriteria()=default
Create a TestingCriteria where everyone is tested.
std::bitset< MAX_NUM_AGE_GROUPS > m_ages
Set of #AgeGroups that are either allowed or required to be tested.
Definition: testing_strategy.h:78
auto default_serialize()
Definition: testing_strategy.h:72
std::bitset<(size_t) InfectionState::Count > m_infection_states
BitSet of InfectionStates that are either allowed or required to be tested.
Definition: testing_strategy.h:80
bool operator==(const TestingCriteria &other) const
Compares two TestingCriteria for functional equality.
Definition: testing_strategy.cpp:41
TestParameters m_test_parameters
Parameters of the test.
Definition: testing_strategy.h:160
TestingScheme()=default
bool run_and_test(PersonalRandomNumberGenerator &rng, Person &person, TimePoint t) const
Runs the TestingScheme and potentially tests a Person.
Definition: testing_strategy.cpp:80
TimeSpan m_validity_period
The valid TimeSpan of the test.
Definition: testing_strategy.h:157
TimePoint m_start_date
Starting date of the scheme.
Definition: testing_strategy.h:158
TestingCriteria m_testing_criteria
TestingCriteria of the scheme.
Definition: testing_strategy.h:156
mio::abm::TimePoint get_end_date() const
Gets the end date of the scheme.
Definition: testing_strategy.h:151
bool operator==(const TestingScheme &other) const
Compares two TestingSchemes for functional equality.
Definition: testing_strategy.cpp:65
TimePoint m_end_date
Ending date of the scheme.
Definition: testing_strategy.h:159
ScalarType m_probability
Probability of performing the test.
Definition: testing_strategy.h:161
auto default_serialize()
This method is used by the default serialization feature.
Definition: testing_strategy.h:123
bool is_active(TimePoint t) const
Gets the activity status of the scheme.
Definition: testing_strategy.cpp:75
mio::abm::TimePoint get_start_date() const
Gets the start date of the scheme.
Definition: testing_strategy.h:142
Set of TestingSchemes that are checked for testing.
Definition: testing_strategy.h:168
bool run_and_check(PersonalRandomNumberGenerator &rng, Person &person, const Location &location, TimePoint t)
Runs the TestingStrategy and potentially tests a Person when entering.
Definition: testing_strategy.cpp:134
std::vector< LocalStrategy > m_testing_schemes_at_location_id
Set of schemes that are checked for testing in specific locations.
Definition: testing_strategy.h:240
std::vector< LocalStrategy > m_testing_schemes_at_location_type
Set of schemes that are checked for testing in overall locations types.
Definition: testing_strategy.h:242
void add_scheme(const LocationId &loc_id, const TestingScheme &scheme)
Add a TestingScheme to the set of schemes that are checked for testing at a certain Location for a sp...
Definition: testing_strategy.cpp:118
auto default_serialize()
This method is used by the default serialization feature.
Definition: testing_strategy.h:231
void add_scheme(const std::vector< LocationType > &loc_type, const TestingScheme &scheme)
Add a TestingScheme to the set of schemes that are checked for testing at a certain Location.
Definition: testing_strategy.h:212
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Creates an instance of T for later initialization.
Definition: default_serialize.h:173
Members< ValueTypes..., T > add(const char *member_name, T &member)
Add a class member.
Definition: default_serialize.h:139
Parameters that describe the reliability of a test.
Definition: abm/parameters.h:465
Vector of testing schemes used as an entry for either LocationId or LocationType in TestingStrategy.
Definition: testing_strategy.h:174
std::vector< TestingScheme > schemes
Definition: testing_strategy.h:175
auto default_serialize()
This method is used by the default serialization feature.
Definition: testing_strategy.h:178
Generated by