Skip to content

Feat/cdd deferred compute#103

Open
Brandhoej wants to merge 16 commits intoEcdar:mainfrom
Brandhoej:feat/CDD-deferred-compute
Open

Feat/cdd deferred compute#103
Brandhoej wants to merge 16 commits intoEcdar:mainfrom
Brandhoej:feat/CDD-deferred-compute

Conversation

@Brandhoej
Copy link

@Brandhoej Brandhoej commented Mar 30, 2023

Second iteration on CDD with deferred computation which was previoslu done with "dirty" flags. In this new iteration a class encapsulating this dirty flag behaviour is created and used by CDD. The aim is to remove complex logic from CDD related to keeping the correct state.

Description

  • The DeferredProperty class which supports the other DeferredProperty as observers to be set as dirty as soon as the parent is.
  • isTrue and isFalse now checks the terminal nodes and not the equality and the true and false equalities checks the corresponding terminal nodes.

@Brandhoej Brandhoej mentioned this pull request Mar 30, 2023
@Brandhoej Brandhoej requested a review from magoorden April 7, 2023 07:07
@Brandhoej Brandhoej marked this pull request as ready for review April 7, 2023 07:07
@@ -548,9 +594,10 @@ public CDD applyReset(int[] clockResets, int[] clockValues, int[] boolResets, in
throw new IllegalArgumentException("The amount of boolean resets and values must be the same");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw new IllegalArgumentException("The amount of boolean resets and values must be the same");
throw new IllegalArgumentException("The number of boolean resets and values must be the same");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants