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

Fix Procedural Generator Constraint to work with classes or use interfaces #1612

Open
dandelany opened this issue Nov 23, 2024 · 0 comments
Open
Assignees
Labels
constraints Anything related to the constraints domain

Comments

@dandelany
Copy link
Collaborator

Background

The "Generator Constraint" is a utility wrapper provided with the procedural constraints library to make it easier to generate constraint violations, described in the docs here:

https://nasa-ammos.github.io/aerie-docs/scheduling-and-constraints/procedural/constraints/#generator-constraints

Issue

@skovati found while implementing #1611 that the generator constraint described in the docs doesn't work yet, and the reason is related to the fact that it's using a Java class for the Violation instead of a record. Per discussion with @skovati and @JoelCourtney we can either:

  • Make some changes to make it work with a Java class
  • Or use an interface instead of a class

@JoelCourtney will look into this more and decide on the best path.

@dandelany dandelany added the constraints Anything related to the constraints domain label Nov 23, 2024
@dandelany dandelany added this to Aerie Nov 23, 2024
@github-project-automation github-project-automation bot moved this to Todo in Aerie Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
constraints Anything related to the constraints domain
Projects
Status: Todo
Development

No branches or pull requests

2 participants