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

Provide extended ILogicalChildOwner which finds children in a restricted scope #2534

Open
kbirken opened this issue Sep 24, 2024 · 0 comments
Assignees

Comments

@kbirken
Copy link
Member

kbirken commented Sep 24, 2024

The ILogicalChildOwner has a default implementation which looks for its ILogicalChild nodes in all MPS models of the module where itself resides. In many applications, it is fine to look in the current MPS model only (not in the whole module). If this can be guaranteed, it can bring a big performance improvement, especially for modules with many models.

Although the respective behavior method of ILogicalChildOwner can be overwritten by each implementor individually, we want to provide the derived interface ILocalLogicalChildOwner as a convenience by the framework. Here, the scope is fixed to the local MPS model, and the method cannot be overwritten by implementors.

Additionally, the framework will provide a checking rule on ILogicalChild nodes which shows an error if the owner is a ILocalLogicalChildOwner and the models of child and owner are different.

@kbirken kbirken self-assigned this Sep 24, 2024
@kbirken kbirken changed the title Prove extended ILogicalChildOwner which finds children in a restricted scope Provide extended ILogicalChildOwner which finds children in a restricted scope Nov 4, 2024
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

No branches or pull requests

1 participant