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

Update ExitNodeDispatcher to support subclasses, improved customization #3125

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

jsiirola
Copy link
Member

@jsiirola jsiirola commented Feb 7, 2024

Fixes # .

Summary/Motivation:

This PR updates the ExitNodeDispatcher to better support extensibility:

  • Automatically handle derived classes using known base class handlers
  • Provide a hook to change the behavior for unknown classes

Note that this does not address #3111 (although these changes are compatible with adding an etype class attribute).

Changes proposed in this PR:

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@jsiirola jsiirola merged commit 42fa578 into Pyomo:main Feb 8, 2024
33 checks passed
@jsiirola jsiirola deleted the expr-dispatcher-updates branch February 8, 2024 15:56
@jsiirola jsiirola restored the expr-dispatcher-updates branch February 20, 2024 23:58
@jsiirola jsiirola deleted the expr-dispatcher-updates branch February 20, 2024 23:58
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.

2 participants