Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » writing stereotype properties
writing stereotype properties [message #989362] Wed, 05 December 2012 20:40 Go to next message
Ann barry is currently offline Ann barryFriend
Messages: 28
Registered: November 2012
Junior Member
Hello everybody

1-i want to represent lifeline0 as the schedulerType for processor so i annotated it with scheduler,stereotype from GRM .
Does this right ?
2-i just want to add properties to stereotype(tagged value)that specify the type of scheduler is round Robin in addition to quantum size
How can i add it?i meant how can write these information ?
and what is the model element used to put tagged value inside it?
please see attachment

Regards
Ann
Re: writing stereotype proper ties [message #989850 is a reply to message #989362] Sat, 08 December 2012 13:06 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 847
Registered: July 2009
Senior Member
Hi, Ann,

I can't comment on the appropriate use of MARTE stereotypes.

However, on the subject of setting stereotype properties ("tagged value" is
a UML 1.x concept): the application of the stereotype creates an instance
of it (recall that stereotypes are UML classes, like meta classes),
attached to the UML element (lifeline in this case). It defines its
properties; you cannot add any. The Properties view lets you set the
stereotype properties in addition to the base UML properties of the
lifeline. But it cannot add new properties. The stereotype is what it is.

HTH,

Christian


Ann barry <forums-noreply@xxxxxxxx> wrote:
> Hello everybody
>
> 1-i want to represent lifeline0 as the schedulerType for processor so i
> annotated it with scheduler,stereotype from GRM .
> Does this right ?
> 2-i just want to add properties to stereotype(tagged value)that specify
> the type of scheduler is round Robin in addition to quantum size
> How can i add it?i meant how can write these information ?
> and what is the model element used to put tagged value inside it?
> please see attachment
>
> Regards
> Ann
>
>
Re: writing stereotype proper ties [message #990296 is a reply to message #989850] Tue, 11 December 2012 18:12 Go to previous messageGo to next message
Ann barry is currently offline Ann barryFriend
Messages: 28
Registered: November 2012
Junior Member
Hi Christian,

thank you for reply
i mean the properties of standard MARTE stereotype.
is it the same?
How can add properties(round Robin in addition to quantum size) to MARTE stereotype (e.g. scheduler) ?
and what is the model element used to put stereotype properties inside?

Regards
Ann

[Updated on: Tue, 11 December 2012 18:13]

Report message to a moderator

Re: writing stereotype proper ties [message #990443 is a reply to message #990296] Wed, 12 December 2012 14:01 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 847
Registered: July 2009
Senior Member
Hi, Ann,

Properties defined by a stereotype should be edited in the context of a
model element to which the stereotype is applied. The Properties view
should show the stereotype properties in addition to the intrinsic UML
properties for an element that has the stereotype applied.

When you select your lifeline in the editor, does the Properties view
not provide controls for editing the attributes of the applied
<<scheduler>> stereotype?

cW


On 2012-12-11 18:12:32 +0000, Ann barry said:

> Hi Christian,
>
> thank you for reply
> i mean the properties of standard MARTE stereotype.
> is it the same?
> How can add properties(round Robin in addition to quantum size) to
> MARTE stereotype (e.g. scheduler) ?
> and what is the model element used to put stereotype properties inside it?
>
> Regards
> Ann
Re: writing stereotype proper ties [message #990577 is a reply to message #990443] Thu, 13 December 2012 09:32 Go to previous messageGo to next message
Ann barry is currently offline Ann barryFriend
Messages: 28
Registered: November 2012
Junior Member
Hi Christian,

i followed the steps that you told me but until now i didn't find the possibilities to determine the quantum size of scheduling policy "RoundRobin"
how can i add it?

Regards
Ann
Re: writing stereotype proper ties [message #997665 is a reply to message #990577] Mon, 07 January 2013 23:46 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 847
Registered: July 2009
Senior Member
Hi, Ann,

Sorry for the long delay in replying. Hopefully you have already
resolved your problem.

In the Properties view, with your <<scheduler>> lifeline selected,
navigate to the Profile tab. In there, expand the Scheduler stereotype
in the "Applied Stereotypes" tree on the left side and find the
scheduling policy attribute. Select it. Then you'll see an
appropriate editing control on the right side of the Properties view.
If the policy is an enumerated type, you'll have a pick-list that
should include the round robin value.

HTH,

Christian


On 2012-12-13 09:32:47 +0000, Ann barry said:

> Hi Christian,
>
> i followed the steps that you told me but until now i didn't find the
> possibilities to determine the quantum size of scheduling policy
> "RoundRobin"
> how can i add it?
>
> Regards
> Ann
Re: writing stereotype proper ties [message #997818 is a reply to message #997665] Tue, 08 January 2013 20:11 Go to previous messageGo to next message
Ann barry is currently offline Ann barryFriend
Messages: 28
Registered: November 2012
Junior Member
Hi Christian,

No problem and you are very welcome.

as I noticed that some options in the properties of stereotype have a Boolean nature that require true and false ,others have an enumeration but i found some attributes that didn't have options to select one out of many such as "other scheduling policy" that i attached it.
How can i add an extra scheduling policy in this box?in other words,Does there is rule to add it?

Regards
Ann

[Updated on: Tue, 08 January 2013 20:12]

Report message to a moderator

Re: writing stereotype proper ties [message #997848 is a reply to message #997818] Tue, 08 January 2013 21:39 Go to previous message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 847
Registered: July 2009
Senior Member
Hi, Ann,

I see in the MARTE_Library.library.uml that the SchedPolicyKind
enumeration defines a "RoundRobin" literal, and there's an "Other"
value, too.

Enumerations are fixed; you cannot add new values to them. I don't
know how MARTE intends that you be able to specify what a custom policy
actually is if you choose the "Other" enumeration literal.

HTH,

Christian


On 2013-01-08 20:11:31 +0000, Ann barry said:

> Hi Christian,
>
> No problem and you are very welcome.
>
> as I noticed that some options in the properties of stereotype have a
> Boolean nature that require true and false ,others have an enumeration
> but i found some attributes that didn't have options to select one out
> of many such as "other scheduling policy" that i attached it.
> How can i add an extra scheduling policy in this box?in other
> words,Does there is rule to add it?
>
> Regards
> Ann
Previous Topic:diagram palette
Next Topic:Are Class unique ?
Goto Forum:
  


Current Time: Sat Dec 20 09:44:50 GMT 2014

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

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