A list of Trips a Person follows.
More...
#include <trip_list.h>
A list of Trips a Person follows.
◆ TripList()
| mio::abm::TripList::TripList |
( |
| ) |
|
|
default |
◆ add_trips()
| void mio::abm::TripList::add_trips |
( |
std::vector< Trip > |
trip | ) |
|
Adds Trips to the trip list.
- Parameters
-
| [in] | trips | The Trips to be added. |
| [in] | weekend | If the Trip is made on a weekend day.
|
◆ default_serialize()
| auto mio::abm::TripList::default_serialize |
( |
| ) |
|
|
inline |
This method is used by the default serialization feature.
◆ get_current_index()
| uint32_t mio::abm::TripList::get_current_index |
( |
| ) |
const |
|
inline |
◆ get_next_trip()
| const Trip & mio::abm::TripList::get_next_trip |
( |
| ) |
const |
Get the next Trip.
- Parameters
-
| weekend | Whether the Trips during the week or on the weekend are used. |
◆ get_next_trip_time()
| TimePoint mio::abm::TripList::get_next_trip_time |
( |
| ) |
const |
Get the trip_time at which the next Trip will happen.
- Parameters
-
| weekend | Whether the Trips during the week or on the weekend are used. |
◆ increase_index()
| void mio::abm::TripList::increase_index |
( |
| ) |
|
|
inline |
Increment the current index to select the next Trip.
◆ num_trips()
| size_t mio::abm::TripList::num_trips |
( |
| ) |
const |
|
inline |
Get the length of the TripList.
- Parameters
-
| weekend | Whether the Trips during the week or on the weekend are used. |
◆ reset_index()
| void mio::abm::TripList::reset_index |
( |
| ) |
|
|
inline |
Reset the current index to 0.
◆ m_current_index
| uint32_t mio::abm::TripList::m_current_index = 0 |
|
private |
◆ m_trips
| std::vector<Trip> mio::abm::TripList::m_trips |
|
private |