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

Listener priorities #2893

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Listener priorities #2893

wants to merge 2 commits into from

Conversation

Royal2Flush
Copy link
Contributor

@Royal2Flush Royal2Flush commented Oct 23, 2023

We introduced listener priorities but don't make widespread use of them yet as far as I can see. This merge request proposes some priorities of Listeners I found in the code.

Note: I will push a couple of more commits in the next days

@Royal2Flush Royal2Flush self-assigned this Oct 23, 2023

@Override
public double priority() { // this should happen after other BeforeMobsimListeners did their thing
return -1000;
Copy link
Contributor

Choose a reason for hiding this comment

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

You should make this a public final static constant, so other listeners can make use of it to control if they want to run before or after the plans dumping.

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.

None yet

2 participants