Skip to content

Commit

Permalink
condensing warnings. refs #14692
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 10, 2024
1 parent f7a8355 commit dfe9653
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/microsim/traffic_lights/MSActuatedTrafficLightLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,18 @@ MSActuatedTrafficLightLogic::init(NLDetectorBuilder& nb) {
}
}
#endif
std::vector<int> warnLinks;
for (int i : actuatedLinks) {
if (linkToLoops[i].size() == 0 && myLinks[i].size() > 0
&& (myLinks[i].front()->getLaneBefore()->getPermissions() & motorized) != 0) {
if (getParameter(myLinks[i].front()->getLaneBefore()->getID()) != NO_DETECTOR) {
WRITE_WARNINGF(TL("At actuated tlLogic '%', linkIndex % has no controlling detector."), getID(), toString(i));
warnLinks.push_back(i);
}
}
}
if (warnLinks.size() > 0) {
WRITE_WARNINGF(TL("At actuated tlLogic '%', linkIndex % has no controlling detector."), getID(), joinToString(warnLinks, ","));
}
// parse maximum green times for each link (optional)
for (const auto& kv : getParametersMap()) {
if (StringUtils::startsWith(kv.first, "linkMaxDur:")) {
Expand Down

0 comments on commit dfe9653

Please sign in to comment.