-
Notifications
You must be signed in to change notification settings - Fork 132
ConstraintAnalysis: add matchCount() or matchesSize() #885
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
Comments
We have a flag, |
That depends on where the fail fast is. I think no issue will occur if the fail fast occurs in |
That's correct. @ge0ffrey, did you mean "failing fast" with the new method? |
Aren't we just moving the same problem on a lower level now? In order to call In my opinion, returning |
I prefer exception compared to returning |
Yes, only scoreAnalysis.matchCount() should throw an exception if matches weren't fetched. SolutionManager.analyse() should still work. Similarly, ScoreAnalysis.toString() or getSummary() should always work, but it has the top 3 matches per constraint only if matches were fetched. |
Uh oh!
There was an error while loading. Please reload this page.
But don't add it to the json serialization, as it can be derived from the matches.
Convenience methods for POC building to print to System.out etc.
Also consider, easily finding:
Fail fast if matches are null (= not fetched)?
The text was updated successfully, but these errors were encountered: