Location Class Reference
|
CPP API
|
mio::abm::Location Class Reference
All Locations in the simulated Model where Persons gather. More...
#include <location.h>
Collaboration diagram for mio::abm::Location:
Public Member Functions | |
| auto | default_serialize () |
| This method is used by the default serialization feature. More... | |
| CellCapacity | get_capacity (uint32_t cell_idx=0) const |
| Get the capacity of a specific Cell in persons and volume. More... | |
| const std::vector< Cell > & | get_cells () const |
| Get the Cells of this Location. More... | |
| mio::geo::GeographicalLocation | get_geographical_location () const |
| Get the geographical location of the Location. More... | |
| LocationId | get_id () const |
| Get the location's identifier in a Model. More... | |
| int | get_model_id () const |
| Get the model id the location is in. More... | |
| MaskType | get_required_mask () const |
| Get the type of Mask that is demanded when entering this Location. More... | |
| LocationType | get_type () const |
| Get the type of this Location. More... | |
| bool | is_mask_required () const |
| Get the information whether masks are required to enter this Location. More... | |
| Location (const Location &other, LocationId id, int model_id=0) | |
| Construct a copy of a Location with a new ID. More... | |
| Location (LocationType loc_type, LocationId loc_id, size_t num_agegroups=1, int model_id=0, uint32_t num_cells=1) | |
| Construct a Location with provided parameters. More... | |
| bool | operator!= (const Location &other) const |
| bool | operator== (const Location &other) const |
| Compare two Locations. More... | |
| 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. More... | |
| void | set_geographical_location (mio::geo::GeographicalLocation location) |
| Set the geographical location of the Location. More... | |
| void | set_required_mask (MaskType type) |
| Set the required type of mask for entering this Location. More... | |
| LocalInfectionParameters & | get_infection_parameters () |
| Get the Location specific Infection parameters. More... | |
| const LocalInfectionParameters & | get_infection_parameters () const |
| Get the Location specific Infection parameters. More... | |
Private Member Functions | |
| Location ()=default | |
Private Attributes | |
| friend | DefaultFactory< Location > |
| std::vector< Cell > | m_cells {} |
| A vector of all Cells that the Location is divided in. More... | |
| mio::geo::GeographicalLocation | m_geographical_location |
| Geographical location (longitude and latitude) of the Location. More... | |
| LocationId | m_id |
| Unique identifier for the Location in the Model owning it. More... | |
| int | m_model_id |
| Model id the location is in. Only used for ABM graph model or hybrid graph model. More... | |
| LocalInfectionParameters | m_parameters |
| Infection parameters for the Location. More... | |
| MaskType | m_required_mask |
| Least secure type of Mask that is needed to enter the Location. More... | |
| LocationType | m_type |
| Type of the Location. More... | |
Detailed Description
Constructor & Destructor Documentation
◆ Location() [1/3]
|
explicit |
Construct a Location with provided parameters.
◆ Location() [2/3]
|
inlineexplicit |
◆ Location() [3/3]
|
privatedefault |
Member Function Documentation
◆ default_serialize()
|
inline |
This method is used by the default serialization feature.
◆ get_capacity()
|
inline |
Get the capacity of a specific Cell in persons and volume.
- Parameters
-
[in] cell_idx The index of the Cell.
- Returns
- The CellCapacity of the Cell.
◆ get_cells()
|
inline |
◆ get_geographical_location()
|
inline |
◆ get_id()
|
inline |
Get the location's identifier in a Model.
- Returns
- The location's LocationId by value.
◆ get_infection_parameters() [1/2]
|
inline |
Get the Location specific Infection parameters.
- Returns
- Parameters of the Infection that are specific to this Location.
◆ get_infection_parameters() [2/2]
|
inline |
Get the Location specific Infection parameters.
- Returns
- Parameters of the Infection that are specific to this Location.
◆ get_model_id()
|
inline |
Get the model id the location is in.
Is only relevant for graph ABM or hybrid model.
- Returns
- Model id of the location
◆ get_required_mask()
|
inline |
◆ get_type()
|
inline |
Get the type of this Location.
- Returns
- The LocationType of the Location.
◆ is_mask_required()
|
inline |
◆ operator!=()
|
inline |
◆ operator==()
◆ set_capacity()
|
inline |
◆ set_geographical_location()
|
inline |
◆ set_required_mask()
|
inline |
Member Data Documentation
◆ DefaultFactory< Location >
|
private |
◆ m_cells
|
private |
◆ m_geographical_location
|
private |
Geographical location (longitude and latitude) of the Location.
◆ m_id
|
private |
◆ m_model_id
|
private |
Model id the location is in. Only used for ABM graph model or hybrid graph model.
◆ m_parameters
|
private |
◆ m_required_mask
|
private |
◆ m_type
|
private |
Type of the Location.
Generated by