[QVTO] adding new message to sequence diagrams [message #107405] |
Mon, 29 June 2009 21:31 |
Eclipse User |
|
|
|
Originally posted by: mary***.****.com
Hello,
I am trying to add a synchCall message to an existing interaction diagram
through qvto mappings. However, It seems that I can't get it to work. I
don't know why?
here is part of the code will really appreciate any kind of help:
=====================================
main{
model.objects()[Interaction]->AddMessage();
...
}
mapping inout Interaction::AddMessage()
{
init{
self.message += object Message {name:='newMessage';
messageSort:=MessageSort::synchCall; interaction:=self; sendEvent:=??;
receiveEvent:=??};};
}
}
============================================
the two parameters sendEvent and receiveEvent are of type MessageKind I
dont know what values they should take..and I am not sure if it is
important to define them or not..Also I can't find the parameter that
specify the two lifelines (like source & destination of the message)in
which the new message should be add ..
Any help plz?
|
|
|
Re: [QVTO] adding new message to sequence diagrams [message #107488 is a reply to message #107405] |
Tue, 30 June 2009 10:18 |
Radomil Dvorak Messages: 249 Registered: July 2009 |
Senior Member |
|
|
Hi mary,
It seems that your question is rather UML specific,
better to ask at 'eclipse.modeling.mdt.uml2' newsgroup.
As for QVTO, I recommend to use 'map' keyword in mapping calls according
to OMG spec.
model.objects()[Interaction]->map AddMessage();
It still works the same as we recognize the reffered operation is a
mapping,
but better to be correct. QVTO used to report a warning,
which is apparently missing now.
Regards,
/Radek
On Mon, 29 Jun 2009 23:31:30 +0200, mary <mary***@****.com> wrote:
> Hello,
> I am trying to add a synchCall message to an existing interaction
> diagram through qvto mappings. However, It seems that I can't get it to
> work. I don't know why? here is part of the code will really appreciate
> any kind of help:
> =====================================
> main{
> model.objects()[Interaction]->AddMessage();
> ..
> }
>
> mapping inout Interaction::AddMessage()
> {
> init{
> self.message += object Message {name:='newMessage';
> messageSort:=MessageSort::synchCall; interaction:=self; sendEvent:=??;
> receiveEvent:=??};};
> }
> }
> ============================================
> the two parameters sendEvent and receiveEvent are of type MessageKind I
> dont know what values they should take..and I am not sure if it is
> important to define them or not..Also I can't find the parameter that
> specify the two lifelines (like source & destination of the message)in
> which the new message should be add ..
>
> Any help plz?
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02574 seconds