eqasim-org / ile-de-france

An open synthetic population of Île-de-France for agent-based transport simulation
GNU General Public License v2.0
47 stars 69 forks source link

Adding motorcycles #205

Closed Nitnelav closed 10 months ago

Nitnelav commented 10 months ago

Hello ! I am trying to add motorcycles to Eqasim..

I'm almost there :

the last thing I'm struggling with is making the motorcycle legs appear in the events file. The motorcycle trips are evaluated in the the DMC replanning part and the routes are in the population file but it looks like the trips don't enter the actual QSim part ... And the issue is that they don't have any "vehicles" attached to it.

at some point I add these line to provide a TripRouter for Motorcycle :

controller.addOverridingModule(new AbstractModule() {
    @Override
    public void install() {
        addRoutingModuleBinding("motorcycle").toProvider(new NetworkRoutingProvider("motorcycle"));
    }
});

But I have the feeling it is not enough for the QSim part to kick in...

Do you have any clues ?

Nitnelav commented 10 months ago

oops it hould be here : https://github.com/eqasim-org/eqasim-java/issues/170