You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Reference

Analysis

Example 1 UML Association


Class Kennel

    <packagedElement xmi:type="uml:Class" xmi:id="_PTSCILIrEemXwfLFUQ7Icw" name="Kennel">
      <ownedComment xmi:type="uml:Comment" xmi:id="_WG15QLIuEemXwfLFUQ7Icw" annotatedElement="_PTSCILIrEemXwfLFUQ7Icw">
        <body>A small shelter for a dog.</body>
      </ownedComment>
    </packagedElement>

Class Dog

    <packagedElement xmi:type="uml:Class" xmi:id="_B32XwLIrEemXwfLFUQ7Icw" name="Dog">
      <generalization xmi:type="uml:Generalization" xmi:id="_G8gkcLIrEemXwfLFUQ7Icw" general="_wBrncLIqEemXwfLFUQ7Icw"/>
      <ownedAttribute xmi:type="uml:Property" xmi:id="_DszRwLIsEemXwfLFUQ7Icw" name="Owner">
        <ownedComment xmi:type="uml:Comment" xmi:id="_3_edELItEemXwfLFUQ7Icw" annotatedElement="_DszRwLIsEemXwfLFUQ7Icw">
          <body>The owner of the doc.</body>
        </ownedComment>
        <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_P-V74LIsEemXwfLFUQ7Icw"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_P-bbcLIsEemXwfLFUQ7Icw" value="*"/>
      </ownedAttribute>
      <ownedAttribute xmi:type="uml:Property" xmi:id="_haqBwLIsEemXwfLFUQ7Icw" name="toy" type="_d6RrQLIsEemXwfLFUQ7Icw" aggregation="composite" association="_hamXYLIsEemXwfLFUQ7Icw">
        <ownedComment xmi:type="uml:Comment" xmi:id="_xj8N8LI2EemXwfLFUQ7Icw" annotatedElement="_haqBwLIsEemXwfLFUQ7Icw">
          <body>Toys presently in the dog's possession.</body>
        </ownedComment>
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_pRCIILIsEemXwfLFUQ7Icw"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_pReNALIsEemXwfLFUQ7Icw" value="*"/>
      </ownedAttribute>
    </packagedElement>

Association DogSleepsInKennel

    <packagedElement xmi:type="uml:Association" xmi:id="_xMdtoLIsEemXwfLFUQ7Icw" name="DogSleepsInKennel" memberEnd="_xMe7wLIsEemXwfLFUQ7Icw _xMe7wbIsEemXwfLFUQ7Icw">
      <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xMeUsLIsEemXwfLFUQ7Icw" source="org.eclipse.papyrus">
        <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xMeUsbIsEemXwfLFUQ7Icw" key="nature" value="UML_Nature"/>
      </eAnnotations>
      <ownedEnd xmi:type="uml:Property" xmi:id="_xMe7wLIsEemXwfLFUQ7Icw" name="kennel" type="_PTSCILIrEemXwfLFUQ7Icw" association="_xMdtoLIsEemXwfLFUQ7Icw">
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_5n1-gLIsEemXwfLFUQ7Icw"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_5oOZALIsEemXwfLFUQ7Icw" value="*"/>
      </ownedEnd>
      <ownedEnd xmi:type="uml:Property" xmi:id="_xMe7wbIsEemXwfLFUQ7Icw" name="dog" type="_B32XwLIrEemXwfLFUQ7Icw" association="_xMdtoLIsEemXwfLFUQ7Icw">
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_6yudQLIsEemXwfLFUQ7Icw"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_6zIF4LIsEemXwfLFUQ7Icw" value="*"/>
      </ownedEnd>
    </packagedElement>

Example 2 Composition

tbc

Example 3 Aggregation

tbc

Example 4 Generalization


tbc


  • No labels