-
Notifications
You must be signed in to change notification settings - Fork 343
[DevProp] Exclude any Component from underlying System #1382
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
base: main
Are you sure you want to change the base?
Conversation
…rlying System. The purpose it to to handle common a desired use case for completely ignoring the existence of a Component so once can accurately assess its impact on computation.
This will be a good feature. The proposed test cases sound great.
Model m;
Component& foo = m.updComponent("foo");
foo.set_is_excluded(true);
m.finalizeFromProperties();
foo.set_is_excluded(false);
m.finalizeFromProperties();
Component& fooAgain = m.updComponent("foo"); Would that throw an exception? That is, will a pointer to a component be the same across calls to exclude/include it? Or would copies, etc. occur? Consider using the test case to ensure such code will work (without re-fetching the excluded subcomponent from the model using
|
Thanks @aseth1 for the nice proposal. Few thoughts come to mind:
|
Related to #1111 |
Enclosed is a proposal for a new feature of the Component to enable it to be effectively excluded from the Model and its resulting System. I do not see the proposed changes as a replacement for disabling Forces and Constraints. Instead it proposes a new feature to correctly and unambiguously exclude the Component (and its subcomponents). I believe users were using disable because they had not other means of removing a Component temporarily other than editing XML directly. The intent of this proposal is to address that use case.
Any and all feedback is appreciated. Thanks!
This change is