[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.uml] Re: Assign Interaction's parameter used as message argument?

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@xxxxxxxxxxx> wrote in message 
news:94f8f8d8d1378bce1e4ff25d67f6f3f6$1@xxxxxxxxxxxxxxxxxx
> 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!
>