location.h Source File
|
CPP API
|
location.h
Go to the documentation of this file.
44 using ContactExposureRates = CustomIndexArray<boost::atomic<ScalarType>, CellIndex, VirusVariant, AgeGroup>;
102 explicit Location(LocationType loc_type, LocationId loc_id, size_t num_agegroups = 1, int model_id = 0,
A class template for an array with custom indices.
Definition: custom_index_array.h:136
An Index with more than one template parameter combines several Index objects.
Definition: index.h:181
All Locations in the simulated Model where Persons gather.
Definition: location.h:92
LocationId m_id
Unique identifier for the Location in the Model owning it.
Definition: location.h:268
const std::vector< Cell > & get_cells() const
Get the Cells of this Location.
Definition: location.h:168
void set_required_mask(MaskType type)
Set the required type of mask for entering this Location.
Definition: location.h:186
mio::geo::GeographicalLocation get_geographical_location() const
Get the geographical location of the Location.
Definition: location.h:228
MaskType m_required_mask
Least secure type of Mask that is needed to enter the Location.
Definition: location.h:271
void set_capacity(uint32_t persons, uint32_t volume, uint32_t cell_idx=0)
Set the CellCapacity of a Cell in the Location in persons and volume.
Definition: location.h:197
mio::geo::GeographicalLocation m_geographical_location
Geographical location (longitude and latitude) of the Location.
Definition: location.h:273
LocationId get_id() const
Get the location's identifier in a Model.
Definition: location.h:143
std::vector< Cell > m_cells
A vector of all Cells that the Location is divided in.
Definition: location.h:270
bool is_mask_required() const
Get the information whether masks are required to enter this Location.
Definition: location.h:219
CellCapacity get_capacity(uint32_t cell_idx=0) const
Get the capacity of a specific Cell in persons and volume.
Definition: location.h:209
int get_model_id() const
Get the model id the location is in.
Definition: location.h:258
LocationType get_type() const
Get the type of this Location.
Definition: location.h:134
MaskType get_required_mask() const
Get the type of Mask that is demanded when entering this Location.
Definition: location.h:177
int m_model_id
Model id the location is in. Only used for ABM graph model or hybrid graph model.
Definition: location.h:274
bool operator!=(const Location &other) const
Definition: location.h:125
auto default_serialize()
This method is used by the default serialization feature.
Definition: location.h:243
bool operator==(const Location &other) const
Compare two Locations.
Definition: location.h:120
void set_geographical_location(mio::geo::GeographicalLocation location)
Set the geographical location of the Location.
Definition: location.h:237
LocalInfectionParameters & get_infection_parameters()
Get the Location specific Infection parameters.
Definition: location.h:153
LocalInfectionParameters m_parameters
Infection parameters for the Location.
Definition: location.h:269
const LocalInfectionParameters & get_infection_parameters() const
Get the Location specific Infection parameters.
Definition: location.h:158
Location()=default
Location(const Location &other, LocationId id, int model_id=0)
Construct a copy of a Location with a new ID.
Definition: location.h:110
Class representing a geographical location on the Earth's surface.
Definition: geolocation.h:42
@ None
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
auto max(const Eigen::MatrixBase< A > &a, B &&b)
coefficient wise maximum of two matrices.
Definition: eigen_util.h:171
Definition: io.h:94
The AgeGroup struct is used as a dynamically sized tag for all age dependent categories.
Definition: age_group.h:32
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
auto default_serialize()
This method is used by the default serialization feature.
Definition: location.h:62
uint32_t persons
Maximal number of Persons at the Cell.
Definition: location.h:59
Definition: location.h:37
ScalarType compute_space_per_person_relative() const
Computes a relative cell size for the Cell.
Definition: location.cpp:45
auto default_serialize()
This method is used by the default serialization feature.
Definition: location.h:82
Generated by