Skip to content

faq 110168427

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

Park and ride in vsp playground

by Renan Grace on 2017-06-22 06:12:02.466


Hi all,

I am attempting to incorporate park and ride into our model. I am following the example in the vsp playground (here) written by .

We have copied the classes at the top level (parkAndRide) and parkAndRide.replanning. The rest (scoring, preparing the network inputs) is implemented separately in our own code. We have also followed the example code to integrate the PRRunner and ControlerListener functionality into our own model. We are working with the release version 0.9.0.

My question is in how to actually tell the model how to use the parkAndRide replanning strategy. I have included the below in the config file which is a guess from the comments in the PRStrategyAdd class. But this hasn't worked and gives me this error: 

"No implementation for org.matsim.core.replanning.PlanStrategy annotated with @com.google.inject.name.Named(value=parkAndRide) was bound."

<module name="strategy">
    <param name="Module_#" value="au.gov.vic.mabm.parkandride.replanning.PRStrategyAdd" />
    <parameterset type="strategysettings">
       <param name="strategyName" value="parkAndRide"/>
       <param name="weight" value="1.0"/>
    </parameterset>
 </module>

Was hoping someone could give me some guidance on this, or any general advice on implementing park and ride (whether using the vsp playground or not) that might be useful to know.

Thanks in advance for your time.

Renan.


Comments: 1


Re: Park and ride in vsp playground

by Ihab Kaddoura on 2017-06-22 08:28:50.387

Dear Renan,

the park and ride code in the vsp playground is approximately 5 years old and has not been used / maintained since then (as far as I know)... sorry for that!

Have a look at the following to packages / classes to get an idea of how to add your own strategy:

tutorial.programming.example10PluggablePlanStrategyFromFile/RunPluggablePlanStrategyFromFileExample.java

tutorial.programming.example11PluggablePlanStrategyInCode/RunPluggablePlanStrategyInCodeExample.java

When I have more time, I can also look at the parkAndRide package and do some maintenance... but not before end of July.

Best regards,

Ihab

Clone this wiki locally