Fix IllegalStateException when Simulating during Scheduling#1846
Open
Mythicaeda wants to merge 2 commits into
Open
Fix IllegalStateException when Simulating during Scheduling#1846Mythicaeda wants to merge 2 commits into
IllegalStateException when Simulating during Scheduling#1846Mythicaeda wants to merge 2 commits into
Conversation
8c6eb97 to
668debc
Compare
668debc to
a47e19a
Compare
The method now accounts for the existence of multiple activities that are identical sans ids
a47e19a to
29577fd
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


IllegalStateExceptionwhen Simulating during Scheduling #1786Description
The method
PlanSimCorrespondence#equalsWithIdMaphas been reworked. Before, it was implicitly assuming that every activity on the plan was distinct in some way. It no longer makes that assumption, instead making the value in the inverted maps aListofActivityDirectiveIds instead of just a singleActivityDirectiveId.Additionally, the method now fast-fails when the number of directives in the two
PlanSimCorrespondences differ. Before, if the only difference between twoPlanSimCorrespondences was a new activity, the method would only realize that after it had done all the work of populating theresultmap.Verification
A new e2e test was added that schedules the procedural goal
DumbRecurrenceGoaltwice.DumbRecurrenceGoalis a goal that will always trigger this bug when it is scheduled more than once. This test fails ondevelopbut passes on this branch.A manual test can be done for this bug with the following Verification steps:
developbranch./gradlew buildAllProcedureJars --parallelto build the test JARsDumbRecurrenceGoalto its scheduling spec. Be sure to give it an argument for thebiteSizeparameterIllegalStateExceptionBiteBananaactivities