LogDataForMobility Struct Reference

CPP API: mio::abm::LogDataForMobility Struct Reference
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

Member Function Documentation

◆ log()

static Type mio::abm::LogDataForMobility::log ( const mio::abm::Simulation<> &  sim)
inlinestatic

Log the mobility data of the agents in the simulation.

Parameters
[in]simThe simulation of the ABM.
Returns
A vector of tuples with the mobility Data, where each tuple contains the following information:
  1. The person id.
  2. The index of the location.
  3. The time point.
  4. The transport mode.
  5. The activity type.
  6. The infection state.