faq 109877626 - matsim-org/matsim-code-examples GitHub Wiki
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.