Skip to content

faq 109877626

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

Why is a null Vehicle passed to LeastCostPathCalculator?

by oussama smiai on 2017-06-09 17:42:24


I would like to write my own router fro an electric vehicle. I followed the tutorial to write a custom routing algorithm at tutorial.programming.example21tutorialTUBclass.leastCostPath  and I couldn't find a way to pass the vehicle as an argument to the following function

public Path calcLeastCostPath(final Node fromNode, final Node toNode, final double startTime, final Person person2, final Vehicle vehicle2)  

The vehicle2 variable was always having the value null during debug.


Comments: 0

Clone this wiki locally