-
Notifications
You must be signed in to change notification settings - Fork 4
Add support for io flags in importOSMNodes function
#256
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
| requires(is_numeric_v<delay_t>) | ||
| void RoadDynamics<delay_t>::addAgentsRandomly(Size nAgents, | ||
| const size_t minNodeDistance) { | ||
| std::unordered_map<Id, double> src_weights, dst_weights; |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.3 rule Note
src/dsm/utility/Logger.cpp
Outdated
| #endif | ||
| if (m_verbose) { | ||
| std::clog << buildMessage("\033[38;2;0;255;0mDEBUG", message, location, m_verbose) + | ||
| "\033[0m\n"; |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 4.1 rule Note
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #256 +/- ##
==========================================
- Coverage 90.50% 90.46% -0.05%
==========================================
Files 37 37
Lines 4908 4929 +21
Branches 454 455 +1
==========================================
+ Hits 4442 4459 +17
- Misses 466 470 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
| node_t& Graph::addNode(Id id, TArgs&&... args) { | ||
| addNode(std::make_unique<node_t>(id, std::forward<TArgs>(args)...)); | ||
| return dynamic_cast<node_t&>(*m_nodes[id]); | ||
| return dynamic_cast<node_t&>(*m_nodes.at(id)); |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 15.5 rule Note
| edge_t& Graph::addEdge(Id id, TArgs&&... args) { | ||
| addStreet(std::make_unique<edge_t>(id, std::forward<TArgs>(args)...)); | ||
| return dynamic_cast<edge_t&>(*m_streets[id]); | ||
| return dynamic_cast<edge_t&>(*m_streets.at(id)); |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 15.5 rule Note
| } | ||
| } | ||
| assert(possibleMoves.size() > 0); | ||
| if (possibleMoves.empty()) { |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 14.4 rule Note
| } | ||
| if (path.size() == 0) { | ||
|
|
||
| if (path.empty()) { |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 14.4 rule Note
|
|
||
| bool TrafficLight::isGreen(Id const streetId, Direction direction) const { | ||
| if (m_cycles.empty()) { | ||
| return true; |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 15.5 rule Note
| nSources, | ||
| dst_weights.size(), | ||
| minNodeDistance)); | ||
| if (nSources == 1 && nDestinations == 1 && |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.1 rule Note
| auto result{this->m_graph.shortestPath(srcId, id)}; | ||
| if (result.has_value() && result.value().path().size() < minNodeDistance && | ||
| dst_weights.size() > 1) { | ||
| if (this->itineraries().at(id)->path().getRow(srcId).empty()) { |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 14.4 rule Note
| if (this->itineraries().at(id)->path().getRow(srcId).empty()) { | ||
| continue; | ||
| } | ||
| if (nDestinations > 1 && minNodeDistance > 0) { |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.1 rule Note
getOSMNodes()function #252