-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixing imports * update IdF emission to matsim 15 (#175) * update workflow version * update to a recent PR of MATSim 16 * MATSim 2025 * add additional test values * add test for emission events * ignoring test on number of lines in shapefile * fix after merge --------- Co-authored-by: Valentin LE BESCOND <[email protected]>
- Loading branch information
Showing
37 changed files
with
595 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 3 additions & 17 deletions
20
core/src/main/java/org/eqasim/core/components/traffic/EqasimTrafficQSimModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,21 @@ | ||
package org.eqasim.core.components.traffic; | ||
|
||
import org.eqasim.core.components.config.EqasimConfigGroup; | ||
import org.matsim.api.core.v01.Scenario; | ||
import org.matsim.core.api.experimental.events.EventsManager; | ||
import org.matsim.core.mobsim.qsim.AbstractQSimModule; | ||
import org.matsim.core.mobsim.qsim.qnetsimengine.ConfigurableQNetworkFactory; | ||
import org.matsim.core.mobsim.qsim.qnetsimengine.QNetworkFactory; | ||
import org.matsim.core.mobsim.qsim.qnetsimengine.linkspeedcalculator.DefaultLinkSpeedCalculator; | ||
import org.matsim.core.mobsim.qsim.qnetsimengine.linkspeedcalculator.LinkSpeedCalculator; | ||
|
||
import com.google.inject.Provides; | ||
import com.google.inject.Singleton; | ||
|
||
public class EqasimTrafficQSimModule extends AbstractQSimModule { | ||
@Override | ||
protected void configureQSim() { | ||
|
||
} | ||
|
||
@Provides | ||
@Singleton | ||
public QNetworkFactory provideQNetworkFactory(EventsManager events, Scenario scenario, | ||
EqasimLinkSpeedCalculator linkSpeedCalculator) { | ||
ConfigurableQNetworkFactory networkFactory = new ConfigurableQNetworkFactory(events, scenario); | ||
networkFactory.setLinkSpeedCalculator(linkSpeedCalculator); | ||
return networkFactory; | ||
bind(LinkSpeedCalculator.class).to(EqasimLinkSpeedCalculator.class); | ||
} | ||
|
||
@Provides | ||
@Singleton | ||
public EqasimLinkSpeedCalculator provideBaselineLinkSpeedCalculator(EqasimConfigGroup eqasimConfig) { | ||
DefaultLinkSpeedCalculator delegate = new DefaultLinkSpeedCalculator(); | ||
return new EqasimLinkSpeedCalculator(delegate, eqasimConfig.getCrossingPenalty()); | ||
return new EqasimLinkSpeedCalculator(eqasimConfig.getCrossingPenalty()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.