-
Notifications
You must be signed in to change notification settings - Fork 4
Add caching of updated paths #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/dsm/headers/Dynamics.hpp
Outdated
| /// @param pItinerary An std::unique_prt to the itinerary | ||
| void m_updatePath(const std::unique_ptr<Itinerary>& pItinerary) { | ||
| auto const& file = std::format("{}it{}.dsmcache", g_cacheFolder, pItinerary->id()); | ||
| if (std::filesystem::exists(file)) { |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 14.4 rule Note
| } | ||
| } | ||
|
|
||
| template <typename agent_t> |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 14.4 rule Note
| /// @param seed The seed for the random number generator (default is std::nullopt) | ||
| /// @param alpha The minimum speed rate (default is 0) | ||
| explicit FirstOrderDynamics(Graph& graph, | ||
| bool useCache = false, |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 17.8 rule Note
| /// @param useCache If true, the cache is used (default is false) | ||
| /// @param seed The seed for the random number generator (default is std::nullopt) | ||
| RoadDynamics(Graph& graph, | ||
| bool useCache = false, |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 17.8 rule Note
| RoadDynamics<delay_t>::RoadDynamics(Graph& graph, | ||
| bool useCache, | ||
| std::optional<unsigned int> seed) | ||
| : Dynamics<Agent<delay_t>>(graph, useCache, seed), |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.3 rule Note
| std::optional<unsigned int> seed, | ||
| double alpha) | ||
| : RoadDynamics<Delay>(graph, seed), m_alpha{alpha}, m_speedFluctuationSTD{0.} { | ||
| : RoadDynamics<Delay>(graph, useCache, seed), |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.3 rule Note
| double alpha) | ||
| : RoadDynamics<Delay>(graph, seed), m_alpha{alpha}, m_speedFluctuationSTD{0.} { | ||
| : RoadDynamics<Delay>(graph, useCache, seed), | ||
| m_alpha{alpha}, |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.3 rule Note
No description provided.