Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug analysis required for dashboards #82

Merged
merged 17 commits into from
Jun 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debug emission analysis: create injector and install EmissionModule
tschlenther authored and simei94 committed Jun 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit e33b7f8893fa206d676a0c3330276a76a2a4dcd6
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@
import org.matsim.core.config.Config;
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.controler.AbstractModule;
import org.matsim.core.controler.Injector;
import org.matsim.core.events.EventsUtils;
import org.matsim.core.events.MatsimEventsReader;
import org.matsim.core.network.NetworkUtils;
@@ -159,6 +160,10 @@ public void install(){
}
};

com.google.inject.Injector injector = Injector.createInjector(config, module);
// Emissions module will be installed to the event handler
injector.getInstance(EmissionModule.class);

EmissionsOnLinkEventHandler emissionsEventHandler = new EmissionsOnLinkEventHandler(3600);
eventsManager.addHandler(emissionsEventHandler);
eventsManager.initProcessing();