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

Add configuration option to squelch one or more of a component's capabilities #62

Open
rplzzz opened this issue Jun 13, 2020 · 0 comments

Comments

@rplzzz
Copy link
Contributor

rplzzz commented Jun 13, 2020

The idea behind capabilities is that for a component that provides a particular capability, we should be able to substitute a different component that provides the same capability, and the system will still run. This gets a little complicated for components that provide multiple capabilities. What if you want to replace one capability but keep the rest?

To make this possible, we need a configuration option to direct a component not to export some of its capabilities. We want to make this happen entirely within the framework functions, so that nothing in any of the component's code has to do anything special to honor the request.

Off the top of my head, I think the best way to do this is to have the ComponentBase.__init__ method store the list of capabilities to be squelched, and then ComponentBase.addCapability could check the list before adding the capability. We would probably also need to modify ComponentBase.addResults to be aware of the possibility that a capability had been squelched.

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