-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RSL: Behavior model improvements (#405)
- Loading branch information
Showing
118 changed files
with
4,784 additions
and
3,509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
modules/paxforecast/include/motis/paxforecast/affected_route_info.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <optional> | ||
|
||
#include "motis/paxmon/broken_transfer_info.h" | ||
#include "motis/paxmon/localization.h" | ||
|
||
namespace motis::paxforecast { | ||
|
||
// probability is stored because it may be changed before the simulation begins | ||
// passenger count is stored for convenience | ||
struct passenger_group_with_route_and_probability { | ||
motis::paxmon::passenger_group_with_route pgwr_{}; | ||
float probability_{}; | ||
std::uint16_t passengers_{}; | ||
}; | ||
|
||
struct affected_route_info { | ||
inline bool broken() const { return broken_transfer_info_.has_value(); } | ||
|
||
passenger_group_with_route_and_probability pgwrap_{}; | ||
unsigned destination_station_id_{}; | ||
motis::paxmon::passenger_localization loc_now_{}; | ||
motis::paxmon::passenger_localization loc_broken_{}; | ||
std::optional<motis::paxmon::broken_transfer_info> broken_transfer_info_; | ||
std::uint32_t alts_now_{}; // index -> alternatives set | ||
std::uint32_t alts_broken_{}; // index -> alternatives set | ||
}; | ||
|
||
} // namespace motis::paxforecast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
modules/paxforecast/include/motis/paxforecast/combined_passenger_group.h
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
modules/paxforecast/include/motis/paxforecast/load_forecast.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.