Assign Interaction's parameter used as message argument? [message #376837] |
Sat, 23 December 2006 21:48  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!
>
|
|
|
Powered by
FUDForum. Page generated in 0.04685 seconds