From 0ba6b1eef390b9edaf3706317302badc532b8b8d Mon Sep 17 00:00:00 2001 From: Kai Martins-Turner Date: Thu, 19 Sep 2024 14:39:05 +0200 Subject: [PATCH] logging --- .../EventBasedCarrierScorer4MultipleChainsInclToll.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/matsim/freight/logistics/examples/multipleChains/EventBasedCarrierScorer4MultipleChainsInclToll.java b/src/main/java/org/matsim/freight/logistics/examples/multipleChains/EventBasedCarrierScorer4MultipleChainsInclToll.java index ba1105fa..91e60ea2 100644 --- a/src/main/java/org/matsim/freight/logistics/examples/multipleChains/EventBasedCarrierScorer4MultipleChainsInclToll.java +++ b/src/main/java/org/matsim/freight/logistics/examples/multipleChains/EventBasedCarrierScorer4MultipleChainsInclToll.java @@ -146,9 +146,11 @@ private void handleEvent(PersonMoneyEvent event) { if (vehicleId != null) { Id carrierIdOfVehicle = v2c.getCarrierOfVehicle(vehicleId); if (carrierId.equals(carrierIdOfVehicle)) { - tollValue = event.getAmount(); + tollValue = event.getAmount(); + log.info("Tolling caused by event: {}, tollvalue {}", event, tollValue); + score = score + tollValue; } - score = score + tollValue; + } } }