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

make emissions analysis classes public #2081

Merged
merged 5 commits into from
Jul 15, 2022

Conversation

Nitnelav
Copy link
Contributor

@Nitnelav Nitnelav commented Jul 4, 2022

In the https://github.com/eqasim-org/eqasim-java project need to manually copy classes from the emissions.analyse namespace because they were not made public.
I'm using only the 2 classes modified here but there might be other classes that would benefit from being public.

@kt86
Copy link
Contributor

kt86 commented Jul 7, 2022

I think that this should be fine.
What do you think @Janekdererste ?

Copy link
Member

@Janekdererste Janekdererste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the classes being public it is possible to import them into other packages. It is not possible to do anything with them, because all the methods are package private as well. At least the getters in both classes need to be public, so that it is possible to access the data those classes have collected during event handling.

The EmissionsOnLinkHandler would need a public constructor as well if it is supposed to be used like the equasim project does

@Nitnelav
Copy link
Contributor Author

Nitnelav commented Jul 8, 2022

Oh right, I didn't check that... I'll update my PR and properly check if I can use what I need. Cheers

@Nitnelav
Copy link
Contributor Author

Nitnelav commented Jul 8, 2022

All right it works fine now. Thanks for the review !

@kt86 kt86 enabled auto-merge July 15, 2022 11:00
@kt86 kt86 merged commit 4224059 into matsim-org:master Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants