[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.uml2] Re: ConnectableElement in sequence diagram
|
Greg,
You could use a collaboration to contain your interaction and properties.
You would add a property to the collaboration for each participant in the
interaction. Each lineline in your interaction would reference a property
contained in the collaboration from its "represents" property.
I've included a model in xmi below which is structured this way.
Tas.
<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.1"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
xmi:id="__emtgGf1EduBS_PuzOzGLA" name="InteractionModel">
<packagedElement xmi:type="uml:Class" xmi:id="_COSm4Gf2EduBS_PuzOzGLA"
name="Class1"/>
<packagedElement xmi:type="uml:Class" xmi:id="_GMNN8Gf2EduBS_PuzOzGLA"
name="Class2"/>
<packagedElement xmi:type="uml:Collaboration"
xmi:id="_IPetQGf2EduBS_PuzOzGLA" name="MyCollaboration">
<ownedBehavior xmi:type="uml:Interaction"
xmi:id="_QMNTQGf2EduBS_PuzOzGLA" name="MyInteraction">
<lifeline xmi:id="_S8CWkGf2EduBS_PuzOzGLA" name="lifeline1"
represents="_K9-T0Gf2EduBS_PuzOzGLA"/>
<lifeline xmi:id="_TfzK8Gf2EduBS_PuzOzGLA" name="lifeline2"
represents="_NN69MGf2EduBS_PuzOzGLA"/>
</ownedBehavior>
<ownedAttribute xmi:id="_K9-T0Gf2EduBS_PuzOzGLA" name="participant1"
type="_COSm4Gf2EduBS_PuzOzGLA"/>
<ownedAttribute xmi:id="_NN69MGf2EduBS_PuzOzGLA" name="participant2"
type="_GMNN8Gf2EduBS_PuzOzGLA"/>
</packagedElement>
</uml:Model>
-------------------------------------------------------------------
Greg O'Keefe wrote:
So, the Lifeline must "represent" a Property, but my question is, a
Property of what?
I have added Properties to the Interaction. Does that sound reasonable?
Is this how sequence diagrams should be represented?