Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Devon M. Simmonds Metadata & The UML Metamodel SLIDES include some from tvarious sources including: (1)

Similar presentations


Presentation on theme: "1 Devon M. Simmonds Metadata & The UML Metamodel SLIDES include some from tvarious sources including: (1)"— Presentation transcript:

1 1 Devon M. Simmonds Metadata & The UML Metamodel SLIDES include some from tvarious sources including: (1) http://www.econ.kuleuven.ac.be/public/ndbaa30/SWMGT/http://www.econ.kuleuven.ac.be/public/ndbaa30/SWMGT/ (2) Object Modeling with OMG UML Tutorial Series - http://www.omg.org/technology/uml/uml_tutorial.htm

2 Advanced Modeling with UML 2 Meta-Models Models that describe other modelsClassClassAssociationAssociationObjects Model Meta-Model(M0)(M1) (M2) CustomerOrderCustomerOrderitemquantityitemquantityCustomerCustomeridid b:CustomerOrder b:CustomerOrder Mike:Customer Id= 12345 Mike:Customer c:CustomerOrderItem=batter Quantity= Quantity= c:CustomerOrderItem=batter *

3 UML The UML specification consists of two interrelated parts: – UML Semantics. A metamodel that specifies the abstract syntax and semantics of UML object modeling concepts. – UML Notation. A graphic notation for the visual representation of the UML semantics. 3

4 UML The abstract syntax for the UML Semantics is expressed using a small subset of the UML Notation. The UML Notation describes the mapping of the graphic notation to the underlying semantics. 4

5 UML The UML metamodel is described in a semi- formal manner using three views: – Abstract syntax – Well-formedness rules – Semantics The abstract syntax is provided as a model described in a subset of UML, consisting of a UML class diagram and a supporting natural language description. 5

6 UML The well-formedness rules are provided using a formal language (Object Constraint Language) and natural language (English). The semantics are described primarily in natural language, but may include some additional notation. 6

7 Advanced Modeling with UML7 The UML Meta-Model A UML Model that describes UML GeneralizableElementGeneralizableElement isRoot : Boolean isLeaf : Boolean isAbstract : Boolean isRoot : Boolean isLeaf : Boolean isAbstract : Boolean ClassClass isActive : Boolean ClassifierClassifier FeatureFeature visibility : {public, private, protected} protected} * not self.isAbstract implies self.allOperations->forAll(op | self.allMethods->exists(m | m.specification includes (op))) Well-formedness constraint (OCL) Meta-ClassMeta-Class

8 8 Four Layered Architecture LayerDescriptionExample Meta-metamodelDefines metamodelmetaClass, metaAttribute, metaOperation MetamodelAn instance of meta- Metamodel. Defines model Class, attribute operation, component modelLanguage for describing information domain. Defines a set of related objects that represent a concept. Employee, User objectAn instance of the model. An example information domain sally

9 OMG Modeling Infrastructure 9 M3 M2 M1 M0 Meta-Object Facility (MOF) UML Metamodel Modeling concepts User Data Instance_of

10 MetaModelsSWE 69910 UML Metamodel Features UML metamodel is managed by organizing it into packages. Each package groups related metaclasses

11 Advanced Modeling with UML 11 «metamodel» UML “Structural Elements” “Behavioral Elements” dependency package UML Metamodel Overview

12 Advanced Modeling with UML 12 “Structural Elements” Composite Structures Classes UML Overview ComponentsDeployments >

13 13

14 14

15 15 Example 1 PERSON CAR [0..1] [0..*] owns Model Layer Entity Association End 1 [0..*] [2..*]1 Cardinality range Rolename Name Meta Model Layer A meta-model is a conceptual model of a modeling technique !

16 16 Example 2 Association Property Class RelationshipClassifier 2..* 0..1 Owned end member end 0..1 0..* Syntactically valid ?

17 The Java Metamodel 17

18 Advanced Modeling with UML18 Behavioral Elements of UML Metamodel

19 19 ______________________ Devon M. Simmonds Computer Science Department University of North Carolina Wilmington _____________________________________________________________ Qu es ti ons? The End


Download ppt "1 Devon M. Simmonds Metadata & The UML Metamodel SLIDES include some from tvarious sources including: (1)"

Similar presentations


Ads by Google