Skip to content

Commit

Permalink
More meter algorithm debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
DougLau committed Jan 23, 2025
1 parent 789f0d3 commit f5715a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/us/mn/state/dot/tms/server/KAdaptiveAlgorithm.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ private R_NodeImpl findRNode(RampMeterImpl meter) {
R_NodeImpl rnode = meter.getEntranceNode();
if (null == rnode)
return null;
String cid = R_NodeHelper.getCorridorName(rnode);
GeoLoc l = rnode.getGeoLoc();
if (l != null && corridor.matchesCD(l.getRoadway())) {
String cid = R_NodeHelper.getCorridorName(rnode);
Corridor cor =
BaseObjectImpl.corridors.getCorridor(cid);
if (cor != null) {
Expand All @@ -375,6 +375,11 @@ private R_NodeImpl findRNode(RampMeterImpl meter) {
return n;
}
}
if (!corridor.getName().equals(cid)) {
log("Invalid corridor " + cid + ", node: " +
rnode.getName() + " for " +
meter.getName());
}
return rnode;
}

Expand Down

0 comments on commit f5715a9

Please sign in to comment.