TollFactor seems to be ignored

Description

After setting up a small road pricing scenario and getting odd results, I started looking into the use of TollFactor. I first checked the integration test RunRoadPricingUsingTollFactorExampleIT and it seems that, although it is running, it is not really doing anything.

More specifically, the TollFactor implementation has a single method, getTollFactor(...), which is implemented in RunRoadPricingUsingTollFactorExample on line 61. If you put a breakpoint on either line 62, or even in RoadPricingSchemeUsingTollFactor on line 90, where the toll cost is supposed to be checked... it is never called. But the integration test also does not crash.

I'll try and look into it, but if anyone has an intuition, please comment.

Environment

None

Activity

Show:
Johan W. Joubert
January 13, 2020, 1:36 PM
Edited

Hmm, it seems the integration test uses a cordon type toll. Still, the TollFactor should be taken into account.

 

Johan W. Joubert
January 13, 2020, 3:54 PM

For now, I’ve implemented a quick fix using pull request #790. But it needs a longer-term fix, which is probably going on somewhere in the roadpricingCleanup branch.

 

Assignee

Unassigned

Reporter

Johan W. Joubert

Labels

None

Components

Priority

Major
Configure