[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: Sequence Diagram Messages

Mary,

the ordering of the messages in an interaction is determined by the elements MessageOccurrenceSpecification(MOS), which represent the sending and receiving of a message.

Each MOS contains exactly one association to an Event (SendOperationEvent, SendSignalEvent, etc.), that represents the kind of message event. So, the ordering depends on the ordering of the MOS. If you want to add to message as the first message afterwards, you have r create not only the message, but also the corresponding occurrence specifications.

HTH
Timothy

mary schrieb:
Hi, How can we add a message to an existing Interaction. I checked the metamodel for the element Message and I can't find which attribute is responsible to define the source and target of the message.
For example in State Machine if you want to create a transition there is an attribute source and target that specify the two ends of the transition.. How can we do that in sequence diagrams?


Also which element/attribute is responsible to specify the position of the message in the interaction diagram.. (i.e. first message in a specific lifeline or the second..etc)

Thanks.