Skip to content

faq 61636619

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

Emissions module compatibility with MATSim 0.6.0

by Valentin Melnikov on 2016-05-15 10:20:38


Is emissions module still supported by latest versions of MATSim?

I try to run this module with 0.6.1 version of MATSim, but get  a lot of errors, including failure of importing, for example

import org.matsim.api.core.v01.events.VehicleLeavesTrafficEvent;
 import org.matsim.core.config.ReflectiveConfigGroup;

and dosens of declaration errors like this:

private final Id<Link> linkId; /*Error:(40, 21) java: type org.matsim.api.core.v01.Id does not take parameters*/

Comments: 1


Re: Emissions module compatibility with MATSim 0.6.0

by Kai Nagel on 2016-05-16 12:37:23

Dear Valentin,

matsim "main distribution" and any contribs need to have consistent versions.  So if you are using MATSim 0.6.x, you also need the emissions module version 0.6.x.   It looks like that is still available under https://sourceforge.net/projects/matsim/files/MATSim/MATSim%20Fall%202014%20%280.6.x%29/Extensions/ .

In general, we now recommend to start from the matsim example project, see https://github.com/matsim-org/matsim-example-project .  The file pom.xml shows how to switch between matsim versions, and it also shows how to add a contrib.  You will have to switch to matsim 0.7.x or later for this.

Best, Kai

Clone this wiki locally