LogDataForMobility Struct Reference
|
CPP API
|
mio::abm::LogDataForMobility Struct Reference
Logger to log mobility data of the agents in the simulation. More...
#include <common_abm_loggers.h>
Inheritance diagram for mio::abm::LogDataForMobility:
Collaboration diagram for mio::abm::LogDataForMobility:
Public Types | |
| using | Type = std::vector< std::tuple< mio::abm::PersonId, mio::abm::LocationId, mio::abm::TimePoint, mio::abm::TransportMode, mio::abm::ActivityType, mio::abm::InfectionState > > |
Static Public Member Functions | |
| static Type | log (const mio::abm::Simulation<> &sim) |
| Log the mobility data of the agents in the simulation. More... | |
Additional Inherited Members | |
Public Member Functions inherited from mio::LogAlways | |
| template<class T > | |
| constexpr bool | should_log (const T &) |
| Always returns true, for any type T. More... | |
Detailed Description
Logger to log mobility data of the agents in the simulation.
Member Typedef Documentation
◆ Type
| using mio::abm::LogDataForMobility::Type = std::vector<std::tuple<mio::abm::PersonId, mio::abm::LocationId, mio::abm::TimePoint, mio::abm::TransportMode, mio::abm::ActivityType, mio::abm::InfectionState> > |
Member Function Documentation
◆ log()
|
inlinestatic |
Log the mobility data of the agents in the simulation.
- Parameters
-
[in] sim The simulation of the ABM.
- Returns
- A vector of tuples with the mobility Data, where each tuple contains the following information:
- The person id.
- The index of the location.
- The time point.
- The transport mode.
- The activity type.
- The infection state.
Generated by
Public Member Functions inherited from