Reference

Analysis

Example 1 UML Association


Class Kennel

  <packagedElement xmi:type="uml:Package" xmi:id="_rBN-QLIqEemXwfLFUQ7Icw" name="ObjectClasses">
    <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>
  </packagedElement>

Class Dog

  <packagedElement xmi:type="uml:Package" xmi:id="_rBN-QLIqEemXwfLFUQ7Icw" name="ObjectClasses">
    <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>
  </packagedElement>

Association DogSleepsInKennel

  <packagedElement xmi:type="uml:Package" xmi:id="_dl4P8LIpEemXwfLFUQ7Icw" name="Associations">
    <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>
  </packagedElement>

Example 2 UML Composition

Class Dog

  <packagedElement xmi:type="uml:Package" xmi:id="_rBN-QLIqEemXwfLFUQ7Icw" name="ObjectClasses">
    <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>
  </packagedElement>

Class Toy

  <packagedElement xmi:type="uml:Package" xmi:id="_rBN-QLIqEemXwfLFUQ7Icw" name="ObjectClasses">
    <packagedElement xmi:type="uml:Class" xmi:id="_d6RrQLIsEemXwfLFUQ7Icw" name="Toy">
      <ownedComment xmi:type="uml:Comment" xmi:id="_RCB7kLIuEemXwfLFUQ7Icw" annotatedElement="_d6RrQLIsEemXwfLFUQ7Icw">
        <body>an object for a child (or dog) to play with.</body>
      </ownedComment>
    </packagedElement>
  </packagedElement>

Composition DogHasToy

  <packagedElement xmi:type="uml:Package" xmi:id="_dl4P8LIpEemXwfLFUQ7Icw" name="Associations">
    <packagedElement xmi:type="uml:Association" xmi:id="_hamXYLIsEemXwfLFUQ7Icw" name="DogHasToy" memberEnd="_haqBwLIsEemXwfLFUQ7Icw _haqo0LIsEemXwfLFUQ7Icw">
      <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_haozoLIsEemXwfLFUQ7Icw" source="org.eclipse.papyrus">
        <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_haozobIsEemXwfLFUQ7Icw" key="nature" value="UML_Nature"/>
      </eAnnotations>
      <ownedEnd xmi:type="uml:Property" xmi:id="_haqo0LIsEemXwfLFUQ7Icw" name="dog" type="_B32XwLIrEemXwfLFUQ7Icw" association="_hamXYLIsEemXwfLFUQ7Icw"/>
    </packagedElement>
  </packagedElement>

Example 3 Aggregation

Class Cat

  <packagedElement xmi:type="uml:Package" xmi:id="_rBN-QLIqEemXwfLFUQ7Icw" name="ObjectClasses">
    <packagedElement xmi:type="uml:Class" xmi:id="_Detn4LIrEemXwfLFUQ7Icw" name="Cat">
      <generalization xmi:type="uml:Generalization" xmi:id="_IQvzgLIrEemXwfLFUQ7Icw" general="_wBrncLIqEemXwfLFUQ7Icw"/>
      <ownedAttribute xmi:type="uml:Property" xmi:id="_HC2AgLIsEemXwfLFUQ7Icw" name="Pet">
        <ownedComment xmi:type="uml:Comment" xmi:id="_52K48LItEemXwfLFUQ7Icw" annotatedElement="_HC2AgLIsEemXwfLFUQ7Icw">
          <body>The human that is the cat's pet.</body>
        </ownedComment>
        <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_OdJ18LIsEemXwfLFUQ7Icw"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_OdTm8LIsEemXwfLFUQ7Icw" value="1"/>
      </ownedAttribute>
      <ownedAttribute xmi:type="uml:Property" xmi:id="_JocJwLIsEemXwfLFUQ7Icw" name="LivesUsed">
        <ownedComment xmi:type="uml:Comment" xmi:id="_y6_88LI1EemXwfLFUQ7Icw" annotatedElement="_JocJwLIsEemXwfLFUQ7Icw">
          <body>The number of lives of the 9 available that the cat has used.</body>
        </ownedComment>
        <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
      </ownedAttribute>
      <ownedAttribute xmi:type="uml:Property" xmi:id="_-LZpQrIsEemXwfLFUQ7Icw" name="tree" type="_2KVyULIrEemXwfLFUQ7Icw" association="_-LZCMLIsEemXwfLFUQ7Icw">
        <ownedComment xmi:type="uml:Comment" xmi:id="_7FLJELI1EemXwfLFUQ7Icw" annotatedElement="_-LZpQrIsEemXwfLFUQ7Icw">
          <body>The current tree that the cat is stuck in.</body>
        </ownedComment>
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Iy-E4LItEemXwfLFUQ7Icw"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_IzuS0LItEemXwfLFUQ7Icw" value="1"/>
      </ownedAttribute>
      <ownedAttribute xmi:type="uml:Property" xmi:id="_YgGsIrItEemXwfLFUQ7Icw" name="mouse" type="_TsjdkLItEemXwfLFUQ7Icw" aggregation="shared" association="_YgGFELItEemXwfLFUQ7Icw">
        <ownedComment xmi:type="uml:Comment" xmi:id="_JSm4ILI2EemXwfLFUQ7Icw" annotatedElement="_YgGsIrItEemXwfLFUQ7Icw">
          <body>Mouse (or mice) that the cat is presently playing with.</body>
        </ownedComment>
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rY8aYLItEemXwfLFUQ7Icw"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rZiQQLItEemXwfLFUQ7Icw" value="*"/>
      </ownedAttribute>
    </packagedElement>
  </packagedElement>

Class Mouse

  <packagedElement xmi:type="uml:Package" xmi:id="_rBN-QLIqEemXwfLFUQ7Icw" name="ObjectClasses">
    <packagedElement xmi:type="uml:Class" xmi:id="_TsjdkLItEemXwfLFUQ7Icw" name="Mouse">
      <ownedComment xmi:type="uml:Comment" xmi:id="_MWFw4LIuEemXwfLFUQ7Icw" annotatedElement="_TsjdkLItEemXwfLFUQ7Icw">
        <body>a small rodent that typically has a pointed snout.</body>
      </ownedComment>
    </packagedElement>
  </packagedElement>
  </packagedElement>

Aggregation CatPlaysWithMouse

  <packagedElement xmi:type="uml:Package" xmi:id="_dl4P8LIpEemXwfLFUQ7Icw" name="Associations">
    <packagedElement xmi:type="uml:Association" xmi:id="_YgGFELItEemXwfLFUQ7Icw" name="CatPlaysWithMouse" memberEnd="_YgGsIrItEemXwfLFUQ7Icw _YgHTMLItEemXwfLFUQ7Icw">
      <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_YgGsILItEemXwfLFUQ7Icw" source="org.eclipse.papyrus">
        <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_YgGsIbItEemXwfLFUQ7Icw" key="nature" value="UML_Nature"/>
      </eAnnotations>
      <ownedEnd xmi:type="uml:Property" xmi:id="_YgHTMLItEemXwfLFUQ7Icw" name="cat" type="_Detn4LIrEemXwfLFUQ7Icw" association="_YgGFELItEemXwfLFUQ7Icw"/>
    </packagedElement>
  </packagedElement>

Example 4 Generalization


tbc

Example 5 Package Comments

Comments

  <packagedElement xmi:type="uml:Package" xmi:id="_mgDgMLIqEemXwfLFUQ7Icw" name="Diagrams">
    <ownedComment xmi:type="uml:Comment" xmi:id="_3RaHELI2EemXwfLFUQ7Icw">
      <body>Cat knows about the tree, and the tree knows about the cat (bidirectional)</body>
    </ownedComment>
    <ownedComment xmi:type="uml:Comment" xmi:id="_AruscLI3EemXwfLFUQ7Icw">
      <body>Cat can reference the mouse, but the mouse cannot reference the cat (unidirectional).



Mouse can exist without the cat (aggregation)</body>
    </ownedComment>
    <ownedComment xmi:type="uml:Comment" xmi:id="_0mrIsLJCEemB2NQhqBtZnA">
      <body>Dog knows about the toy, but the toy does not know about the dog.

-

A composition (Toy cannot exist without the dog)</body>
    </ownedComment>
  </packagedElement>




  • No labels