Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to apply the stereotype" SwSchedulableResource" (How to apply the stereotype" SwSchedulableResource" )
How to apply the stereotype" SwSchedulableResource" [message #1020308] Sun, 17 March 2013 18:11 Go to next message
sabrina ing is currently offline sabrina ing
Messages: 39
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 18:12]

Report message to a moderator

Re: How to apply the stereotype" SwSchedulableResource" [message #1020327 is a reply to message #1020308] Sun, 17 March 2013 19:25 Go to previous messageGo to next message
Goood Guy is currently offline Goood Guy
Messages: 126
Registered: September 2011
Senior Member
do you load the marte profile programmatically before?
does getApplicableStereotype return a Stereotype or null?
Re: How to apply the stereotype" SwSchedulableResource" [message #1020563 is a reply to message #1020308] Mon, 18 March 2013 09:27 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. Damus
Messages: 765
Registered: July 2009
Senior Member
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 #1020597 is a reply to message #1020563] Mon, 18 March 2013 10:39 Go to previous messageGo to next message
sabrina ing is currently offline sabrina ing
Messages: 39
Registered: February 2013
Member
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.

Is that the path of the profile application

"MARTE::MARTE_Foundations::GRM::SwSchedulableResource" is correct?



Re: How to apply the stereotype" SwSchedulableResource" [message #1020637 is a reply to message #1020597] Mon, 18 March 2013 11:55 Go to previous message
Christian W. Damus is currently offline Christian W. Damus
Messages: 765
Registered: July 2009
Senior Member
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?
Previous Topic:Create Papyrus Project From UML file Using Java
Next Topic:Show/Hide contents question
Goto Forum:
  


Current Time: Fri Jul 25 16:48:19 EDT 2014

Powered by FUDForum. Page generated in 0.01994 seconds