common_abm_loggers.h Source File
|
CPP API
|
common_abm_loggers.h
Go to the documentation of this file.
83 std::tuple<mio::abm::LocationId, mio::abm::LocationType, mio::geo::GeographicalLocation, size_t, int>>;
104 location.get_id(), location.get_type(), location.get_geographical_location(), n_cells, loc_capacity));
140 using Type = std::vector<std::tuple<mio::abm::PersonId, mio::abm::LocationId, mio::abm::TimePoint,
Agents in the simulated Model that can carry and spread the Infection.
Definition: person.h:51
Run the Simulation in discrete steps, evolve the Model and report results.
Definition: models/abm/simulation.h:37
Model & get_model()
Get the Model that this Simulation evolves.
Definition: models/abm/simulation.h:91
TimePoint get_time() const
Get the current time of the Simulation.
Definition: models/abm/simulation.h:83
@ BasicsShop
@ SocialEvent
@ School
@ Cemetery
@ Hospital
@ UnknownActivity
@ Leisure
@ Workplace
@ OtherActivity
@ Education
@ Shopping
constexpr mio::abm::ActivityType guess_activity_type(mio::abm::LocationType current_location)
Definition: common_abm_loggers.h:54
int size(Comm comm)
Return the size of the given communicator.
Definition: miompi.cpp:75
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
constexpr std::size_t index_of_type_v
The index of Type in the list Types.
Definition: metaprogramming.h:191
constexpr std::tuple_element< I, std::tuple< Index< CategoryTags >... > >::type & get(Index< CategoryTags... > &i) noexcept
Retrieves the Index (by reference) at the Ith position of a MultiIndex.
Definition: index.h:294
Definition: history.h:154
LogOnce and LogAlways can be used as a base class to write a logger for History.
Definition: history.h:143
This class writes data retrieved from loggers to memory.
Definition: common_abm_loggers.h:217
static void add_record(const typename Logger::Type &t, Data &data)
This function adds an entry to the data vector.
Definition: common_abm_loggers.h:226
std::tuple< std::vector< typename Loggers::Type >... > Data
Definition: common_abm_loggers.h:218
Logger to log mobility data of the agents in the simulation.
Definition: common_abm_loggers.h:139
std::vector< std::tuple< mio::abm::PersonId, mio::abm::LocationId, mio::abm::TimePoint, mio::abm::TransportMode, mio::abm::ActivityType, mio::abm::InfectionState > > Type
Definition: common_abm_loggers.h:141
static Type log(const mio::abm::Simulation<> &sim)
Log the mobility data of the agents in the simulation.
Definition: common_abm_loggers.h:153
Logger to log the TimeSeries of the number of Persons in an InfectionState.
Definition: common_abm_loggers.h:168
std::pair< mio::abm::TimePoint, Eigen::VectorX< ScalarType > > Type
Definition: common_abm_loggers.h:169
static Type log(const mio::abm::Simulation<> &sim)
Log the TimeSeries of the number of Persons in an InfectionState.
Definition: common_abm_loggers.h:175
Logger to log the LocationInformation of the simulation.
Definition: common_abm_loggers.h:81
std::vector< std::tuple< mio::abm::LocationId, mio::abm::LocationType, mio::geo::GeographicalLocation, size_t, int > > Type
Definition: common_abm_loggers.h:83
static Type log(const mio::abm::Simulation<> &sim)
Log the LocationInformation of the simulation.
Definition: common_abm_loggers.h:94
Logger to log the Persons Information in the simulation.
Definition: common_abm_loggers.h:113
std::vector< std::tuple< mio::abm::PersonId, mio::abm::LocationId, mio::AgeGroup > > Type
Definition: common_abm_loggers.h:114
static Type log(const mio::abm::Simulation<> &sim)
Log the LocationInformation of the simulation.
Definition: common_abm_loggers.h:123
This is like the DataWriterToMemory, but it only logs time series data.
Definition: common_abm_loggers.h:197
static void add_record(const typename Logger::Type &t, Data &data)
This function adds an entry to the TimeSeries consisting of the TimePoint and the value.
Definition: common_abm_loggers.h:205
std::tuple< mio::TimeSeries< ScalarType > > Data
Definition: common_abm_loggers.h:198
Struct to save specific mobility data of an agent.
Definition: common_abm_loggers.h:43
mio::abm::TimePoint start_time
Definition: common_abm_loggers.h:47
mio::abm::InfectionState infection_state
Definition: common_abm_loggers.h:51
mio::abm::TransportMode transport_mode
Definition: common_abm_loggers.h:49
mio::abm::ActivityType activity_type
Definition: common_abm_loggers.h:50
Generated by