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; + } } }