From ece5f067a3921d0bb08b117b1e3522f8eb4ef158 Mon Sep 17 00:00:00 2001 From: Georg Hoelger Date: Mon, 6 Jan 2025 13:46:07 +0100 Subject: [PATCH] refactor: Adapt to new naming --- .../ambassador/simulation/tmc/LaneAreaDetector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fed/mosaic-application/src/main/java/org/eclipse/mosaic/fed/application/ambassador/simulation/tmc/LaneAreaDetector.java b/fed/mosaic-application/src/main/java/org/eclipse/mosaic/fed/application/ambassador/simulation/tmc/LaneAreaDetector.java index 7ce6304e..8584e849 100644 --- a/fed/mosaic-application/src/main/java/org/eclipse/mosaic/fed/application/ambassador/simulation/tmc/LaneAreaDetector.java +++ b/fed/mosaic-application/src/main/java/org/eclipse/mosaic/fed/application/ambassador/simulation/tmc/LaneAreaDetector.java @@ -53,11 +53,11 @@ public double getLength() { } @SuppressWarnings("unused") - public int getAmountOfVehiclesOnSegment() { + public int getNumberOfVehicles() { return lastLaneAreaInfo == null ? 0 : Math.max(0, lastLaneAreaInfo.getVehicleCount()); } - public int getAmountOfHaltingVehiclesOnSegment() { + public int getNumberOfHaltingVehicles() { return lastLaneAreaInfo == null ? 0 : Math.max(0, lastLaneAreaInfo.getHaltingVehicles()); }