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.
Action item
Problem
Sorry for my delayed reply.
In the original code, in
Quadrant
's second mutation,toAccumulator
(anOutPort
) was the destination of two components:toNextAccumulator
ofAccumulator
:reactor-ts/src/benchmark/FacilityLocation.ts
Lines 625 to 629 in b81e1ce
and the mutation (
[M1]
itself:reactor-ts/src/benchmark/FacilityLocation.ts
Lines 757 to 763 in b81e1ce
I suppose, effectively, the first connection (which doesn't make much sense in the first place as it was connecting an
OutPort
to anOutPort
), is to make a logic that "oncetoNextAccumulator
is set, we also settoAccumulator
"My current ugly fix is simply replicate this logic without making any additional connection by accessing a parent port from children: in
Accumulator
:reactor-ts/src/benchmark/FacilityLocation.ts
Lines 300 to 313 in 82d6e34
Then set both ports when one needs to be updated:
reactor-ts/src/benchmark/FacilityLocation.ts
Lines 359 to 374 in 82d6e34
I suppose this is not a good way to do it...... So I'm all ears
Originally posted by @axmmisaka in #223 (comment)