Skip to main content


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] Sun, 24 December 2006 02:48 Go to next message
Leila Naslavsky is currently offline Leila NaslavskyFriend
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 19:14 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
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 19:14 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
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: Tue Apr 16 09:28:17 GMT 2024

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

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

Back to the top