cogimon / cogimon.github.io

COGIMON Top-Level Documentation
GNU Lesser General Public License v3.0
1 stars 4 forks source link

Composition of Components #16

Open xwavex opened 7 years ago

xwavex commented 7 years ago

I am proposing a way to manage the composition of functional parts in form of components.

Using a specialized component, ComponentFrame, to nest any kind of components that implements a specific interface σ:

Interface σ:

- prov getService() : ServicePtr
- prov unregisterService() : void
- prov unloadActivity() : void
ComponentFrame:

- prov addComponent(comp) : void,  ∃ s ∈ comp.services (s = σ)

Questions that need to be investigated: