- Created by Keong Lim, last modified on Aug 12, 2019
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 6 Next »
Reference
- Files attached to 2019-08-05 AAI Information Model Reverse Engineering
Analysis
Example 1 UML Association
Click here to expand...
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 UML Composition
Click here to expand...
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>
Class Toy
<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>
Composition DogHasToy
<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
tbc
Example 4 Generalization
tbc
Example 5 Package Comments
Click here to expand...
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