Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » Assign Interaction's parameter used as message argument?
Assign Interaction's parameter used as message argument? [message #376837] Sat, 23 December 2006 21:48 Go to next message
Leila Naslavsky is currently offline Leila Naslavsky
Messages: 13
Registered: July 2009
Junior Member
Hi All,
One quick question....
I'm creating an interaction, which has a paremeter, say : x, which is an
integer.
I want one of the messages in the interaction to receive this parameter as
an argument.

In fact, in the UML super structure spec, they say:

Arguments of a Message must only be:
i) attributes of the sending lifeline.
ii) constants.
iii) symbolic values (which are wildcard values representing any legal
value).
iv)>>>>>> explicit parameters of the enclosing Interaction. <<<<<<<<
v) attributes of the class owning the Interaction.

However, the type of 'argument' (in the Message element) is
'ValueSpecification', so I can't directly reference the parameter of the
enclosing interaction... Am I right? Is there a way to do this?


Thanks!
Re: Assign Interaction's parameter used as message argument? [message #376838 is a reply to message #376837] Fri, 05 January 2007 14:14 Go to previous message
Kenn Hussey is currently offline Kenn Hussey
Messages: 1618
Registered: July 2009
Senior Member
Leila,

This post belongs in the eclipse.modeling.mdt.uml2.uml newsgroup.

The UML specification doesn't provide a standard way of correlating message
arguments to an enclosing interaction's parameters, other than the fact that
the types must match. Of course, if the argument is an expression, I suppose
you could referece the parameter by name...

Kenn

"Leila" <lnaslavsky@hotmail.com> wrote in message
news:94f8f8d8d1378bce1e4ff25d67f6f3f6$1@www.eclipse.org...
> Hi All,
> One quick question....
> I'm creating an interaction, which has a paremeter, say : x, which is an
> integer.
> I want one of the messages in the interaction to receive this parameter as
> an argument.
>
> In fact, in the UML super structure spec, they say:
>
> Arguments of a Message must only be: i) attributes of the sending
> lifeline. ii) constants. iii) symbolic values (which are wildcard values
> representing any legal value). iv)>>>>>> explicit parameters of the
> enclosing Interaction. <<<<<<<<
> v) attributes of the class owning the Interaction.
>
> However, the type of 'argument' (in the Message element) is
> 'ValueSpecification', so I can't directly reference the parameter of the
> enclosing interaction... Am I right? Is there a way to do this?
>
>
> Thanks!
>
Re: Assign Interaction's parameter used as message argument? [message #569183 is a reply to message #376837] Fri, 05 January 2007 14:14 Go to previous message
Kenn Hussey is currently offline Kenn Hussey
Messages: 1618
Registered: July 2009
Senior Member
Leila,

This post belongs in the eclipse.modeling.mdt.uml2.uml newsgroup.

The UML specification doesn't provide a standard way of correlating message
arguments to an enclosing interaction's parameters, other than the fact that
the types must match. Of course, if the argument is an expression, I suppose
you could referece the parameter by name...

Kenn

"Leila" <lnaslavsky@hotmail.com> wrote in message
news:94f8f8d8d1378bce1e4ff25d67f6f3f6$1@www.eclipse.org...
> Hi All,
> One quick question....
> I'm creating an interaction, which has a paremeter, say : x, which is an
> integer.
> I want one of the messages in the interaction to receive this parameter as
> an argument.
>
> In fact, in the UML super structure spec, they say:
>
> Arguments of a Message must only be: i) attributes of the sending
> lifeline. ii) constants. iii) symbolic values (which are wildcard values
> representing any legal value). iv)>>>>>> explicit parameters of the
> enclosing Interaction. <<<<<<<<
> v) attributes of the class owning the Interaction.
>
> However, the type of 'argument' (in the Message element) is
> 'ValueSpecification', so I can't directly reference the parameter of the
> enclosing interaction... Am I right? Is there a way to do this?
>
>
> Thanks!
>
Previous Topic:Assign Interaction's parameter used as message argument?
Next Topic:UML Diagrams
Goto Forum:
  


Current Time: Thu Aug 28 11:31:01 EDT 2014

Powered by FUDForum. Page generated in 0.01737 seconds