Skip to main content


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 22:11 Go to next message
Mariem Makni is currently offline Mariem MakniFriend
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 #1020327 is a reply to message #1020308] Sun, 17 March 2013 23:25 Go to previous messageGo to next message
Simon Schwichtenberg is currently offline Simon SchwichtenbergFriend
Messages: 127
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 13:27 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
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 14:39 Go to previous messageGo to next message
Mariem Makni is currently offline Mariem MakniFriend
Messages: 46
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 15:55 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
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: Thu Apr 18 04:26:12 GMT 2024

Powered by FUDForum. Page generated in 0.02337 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top