How to apply the stereotype" SwSchedulableResource" [message #1020308] |
Sun, 17 March 2013 22:11 |
Mariem Makni Messages: 46 Registered: February 2013 |
Member |
|
|
Hi,
I have created a package and I want to apply the stereotype "SwSchedulableResource" for
this package.
I used :
Package pkg=(Package) ((Package) (owner)).createNestedPackage("RTOS_Model");
pkg.applyStereotype(pkg.getApplicableStereotype("MARTE::MARTE_Foundations::GRM::SwSchedulableResource"));
But, It doesn't work.
Can you help me please.
Thanks in advance,
[Updated on: Sun, 17 March 2013 22:12] Report message to a moderator
|
|
|
|
Re: How to apply the stereotype" SwSchedulableResource" [message #1020563 is a reply to message #1020308] |
Mon, 18 March 2013 13:27 |
|
Hi, Mariem,
What does "doesn't work" mean? Do you get an exception? Do you just
not see the stereotype applied?
Is the MARTE::MARTE_Foundations::GRM profile applied to the RTOS_Model
package or some package that contains it? Note that any of the many
nested profiles in MARTE whose stereotypes you want to use has to be
applied separately. There is no single profile that you can apply that
makes all of the MARTE stereotypes available.
Cheers,
Christian
On 2013-03-17 22:11:44 +0000, Mariem Makni said:
> Hi,
>
> I have created a package and I want to apply the stereotype
> "SwSchedulableResource" for
> this package.
>
> I used :
> Package pkg=(Package) ((Package) (owner)).createNestedPackage("RTOS_Model");
>
> pkg.applyStereotype(pkg.getApplicableStereotype("MARTE::MARTE_Foundations::GRM::SwSchedulableResource"));
>
>
> But, It doesn't work.
>
> Can you help me please.
>
> Thanks in advance,
|
|
|
|
Re: How to apply the stereotype" SwSchedulableResource" [message #1020637 is a reply to message #1020597] |
Mon, 18 March 2013 15:55 |
|
On 2013-03-18 14:39:18 +0000, Mariem Makni said:
> Hi,
>
>
> Thanks for your reply.
>
> When I apply the stereotype "SwSchedulableResource" for package or
> class, I get an
> exception.
> I tried to change the stereotype by another stereotype like
> "MARTE::MARTE_AnalysisModel::GQAM::GaAnalysisContext", the stereotype
> "GaAnalysisContext" is applied without any problem.
That stereotype is in the GQAM profile. It's a different profile from GRM.
> Is that the path of the profile application
> "MARTE::MARTE_Foundations::GRM::SwSchedulableResource" is correct?
I don't know. Is the GRM profile applied to your package? DOes the
SwSchedulableResource stereotype exist in the GRM profile?
|
|
|
Powered by
FUDForum. Page generated in 0.03445 seconds