[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: [ATL] Set stereotype tagged value

Hi Amivi,

Amivi FAGBEGNON a écrit :
Hello,

I have problems to set tagged value of a stereotype. The stereotype is set in a do action just before de setValue instruction like this:
do{
out.applyStereotype(ster);
out.setValue(ster,'tagged value name',p.name);
}
out is an property.
I do a test to know if the stereotype is applied by displaying stereotypes applied with the method getAppliedSterotypes() and I get an empty Sequence.


If anyone had the same problem and solved it, it will be kind to explain me how to proceed.

You can find from http://www.eclipse.org/gmt/modisco/useCases/PerformanceAnnotatedUmlStateCharts/ a complete example on how to apply stereotypes on a UML model with ATL.


Look more particularly at the "UMLStateChart2PerformanceAnnotatedUMLStateChart.atl" transformation.

Best regards,

Hugo


Thanks



--
--------------------------------------------------------
Hugo Bruneliere - R&D Engineer
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssiniere
44322 Nantes Cedex 3 - France
office +33 2 51 12 58 10 /\ cell.+33 6 07 42 45 30
EMail: Hugo.Bruneliere@xxxxxxxxxxxxxx
http://www.sciences.univ-nantes.fr/lina/atl/
--------------------------------------------------------