osate / osate2

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

Possible to have multiple packages in the same .aadl file? #979

Closed paolo-crisafulli closed 6 years ago

paolo-crisafulli commented 6 years ago

Hi all, I'm trying to reuse AADL packages from Ocarina in a project that I'm editing with Osate. Ocarina provides a huge .aadl file, ocarina_components.aadl, containing several useful packages definition (sample attached, as .txt file because Github rejects .aadl).

ocarina_components.txt

Osate considers this file as invalid, mainly because it contains more than one package object.

I have checked this fact with a much simpler example:

package test
public
end test;

package test2
public
end test2;

This won't be parsed by Osate which reports "Incomplete package or property set declaration", referring to the 'package test2' line.

Is this a desirable behavior? In the AADL specification, I can't find a mention of the fact that .aadl files should contain only one package object. Thank you in advance for your help.

Environment: Ubuntu LTS 16.04 Osate 2.3.0 (product version, stable) Ocarina v2017.1

lwrage commented 6 years ago

OSATE doesn't support multiple packages per file. The AADL specification neither requires nor forbids it. We are not planning on changing this in OSATE 2.

lwrage commented 6 years ago

BTW, the OSATE Google group would be a better place to discuss items like this.

paolo-crisafulli commented 6 years ago

Thank you for your answers (cf. #981), I'll post my next questions to the Google group as suggested.