Repository navigation
Insert cells off center - #237
Open
allison-li-1016 wants to merge 4 commits into
Open
allison-li-1016 wants to merge 4 commits into
allison-li-1016 wants to merge 4 commits into
Conversation
allison-li-1016
marked this pull request as draft
September 22, 2026 22:55
allison-li-1016
marked this pull request as ready for review
October 5, 2026 16:34
allison-li-1016
requested review from
a team,
Jannetty,
afu5,
cainja,
daniellevahdat,
jacob-evarts,
jessicasyu and
kristaphommatha
and removed request for
a team
October 5, 2026 16:36
kristaphommatha
left a comment
Contributor
There was a problem hiding this comment.
Everything looks great! I just had some documentation comments :)
| /** | ||
| * Implementation of {@link Action} for inserting cell agents. | ||
| * | ||
| * <p>The action is stepped once after {@code TIME_DELAY}. The action will insert a mixture of |
Contributor
There was a problem hiding this comment.
You should update this javadoc to reflect all the changes! I think it should be specified somewhere too, whether in this javadoc or a later one, that the default for if the direction and/or offset is not specified by the user is CENTER and 0, respectively
Contributor
There was a problem hiding this comment.
Is there a reason this file is named PatchLocationFactoryHexOffsetTest.java and not just PatchLocationFactoryHexTest.java file? I'm just wondering because the rest of the test java files seem to be named exactly after the file that it's testing?
This branch has not been deployed
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.
Estimated time to review: M
Context: In an effort to insert multiple clusters for a population, I added new functionality that allows inserts to be off the center of the simulation FOV. Currently I describe the center with a direction and offset parameter.
For hex grids, the directions are N, S, NE, NW, SW, SE to describe the 6 neighbors of a hex location. For rect grids the directions are N, W, E, S to describe the 4 neighbors of each rect location.
Offset is the number of location units from the center (same unit as radius)
Summary of changes:
PatchActionInsert:ParametersEnumsPatchLocationFactoryPatchLocationFactoryHexPatchLocationFactoryRectTestsExample usage: