osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
36 stars 8 forks source link

The name of a subcomponent should be set to null whenever its refined subcomponent is set to a non null value. #320

Closed dblouin closed 10 years ago

dblouin commented 10 years ago

When synchronizing Adele and AADL models, the synchronization tool may call setRefined on AADL subcomponents. It would be helpful if the method could take care of setting the current name of the subcomponent to null whenever a non null refined element is set, in order to avoid the validation error saying that both refined element and name cannot be non null at the same time.

This should also be taken care of for the refinable element class so that no non null name is set when the element has a non null refinement.

I can provide a patch that fixes this problem.

juli1 commented 10 years ago

Dear Dominique,

Please attach a patch and I will commit it.

Thanks.

juli1 commented 10 years ago

closed