Skip to content

Commit

Permalink
feat: Make getHaltingVehicles from lastLaneAreaInfo accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelger committed Jan 6, 2025
1 parent c352cf4 commit 30d54d5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public int getAmountOfVehiclesOnSegment() {
return lastLaneAreaInfo == null ? 0 : Math.max(0, lastLaneAreaInfo.getVehicleCount());
}

public int getAmountOfHaltingVehiclesOnSegment() {
return lastLaneAreaInfo == null ? 0 : Math.max(0, lastLaneAreaInfo.getHaltingVehicles());
}

public double getMeanSpeed() {
return lastLaneAreaInfo == null || lastLaneAreaInfo.getVehicleCount() == 0 ? -1d : lastLaneAreaInfo.getMeanSpeed();
}
Expand Down

0 comments on commit 30d54d5

Please sign in to comment.