Skip to content
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

Define a first-class abstraction for the DT Model ? #15

Open
samubura opened this issue Feb 25, 2024 · 0 comments
Open

Define a first-class abstraction for the DT Model ? #15

samubura opened this issue Feb 25, 2024 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@samubura
Copy link
Member

In WLDT currently, the model of the DT is implemented through the shadowing, function.
This gives a bit too much responsibility to the shadowing function which in theory should be responsible only for mapping the physical updates to the Digital updates.

Any form of decision-making, applying changes on the PA, or computation that concerns aggregated properties and so on could be delegated to the model of the DT, to which the shadowing function passes events.

This may create less confusion for library adopters as well.

This opens up many patterns:

  • can there be multiple models?
  • what is the purpose of the shadowing function then?
  • do we provide a default shadowing process that simply propagate every event while delegating them also to the model?
@samubura samubura added enhancement New feature or request question Further information is requested labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant