mbeddr / mbeddr.core

The mbeddr core. An extensible C
Eclipse Public License 2.0
224 stars 77 forks source link

Add "mandatory" option to interfaces provided by components #1538

Open fbacha opened 7 years ago

fbacha commented 7 years ago

For mbeddr components, the user can have the possibility to specify whether a provided interface is mandatory or not (using the key word "mandatory" after the name of the provided interface). If a mandatory provided interface is not used by any component, an error should be displayed.

stephaneberle9 commented 7 years ago

We need to take adapt statements into account, and not raise any error if 1/ the mandatory provided port has been connected (already the case) 2/ when the mandatory provided port has been adapted and the resulting adapter is actually being called somewhere (see e.g., http://localhost:8080/select/itemis-smartmeter/r:0767932c-0962-44cb-83e4-9ef1c1ca7d39/1678844614243268966/)