osate / osate2

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

Method getAllAnnexSubclauses is undefined for the type ComponentClassifier #380

Closed spmiller2055 closed 9 years ago

spmiller2055 commented 10 years ago

The method getAllAnnexSubclauses is undefined for the type ComponentClassifier in the current release of OSATE. Is there a method that should be used instead?

juli1 commented 10 years ago

Hi Steve,

Please see https://wiki.sei.cmu.edu/aadl/index.php/Metamodel_updates#Annex_handling it should provide all the information you need. Please let us know if it addresses your need.

Julien.

reteprelief commented 10 years ago

Hi Steve,

look at org.osate.annexsupport.AnnexUtil It has a method for getting all annex subclauses of a certain annex type.

I use a variant of this method in EMV2Util where I am dealing with inheriting elements of the EMV2 annex, e.g., inheriting a transition declaration from a component type that has been extended.

spmiller2055 commented 10 years ago

Hi Peter,

Thanks. How do you specify the second Eclass argument? For example, to specify getting all the Behavior Annex annexes?

On Mon, Jul 21, 2014 at 9:28 PM, Peter Feiler notifications@github.com wrote:

Hi Steve,

look at org.osate.annexsupport.AnnexUtil It has a method for getting all annex subclauses of a certain annex type.

I use a variant of this method in EMV2Util where I am dealing with inheriting elements of the EMV2 annex, e.g., inheriting a transition declaration from a component type that has been extended.

— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/380#issuecomment-49691199.

reteprelief commented 10 years ago

You get this from the Java instance of the Ecore model (generated by EMF) For EMV2 it is ErrorModelPackage.eINSTANCE.getErrorModelSubclause();