Presentation is loading. Please wait.

Presentation is loading. Please wait.

A little bit of UML Csaba Veres. UML A de facto standard for OO analysis and design Many components class diagrams use cases interaction diagrams...

Similar presentations


Presentation on theme: "A little bit of UML Csaba Veres. UML A de facto standard for OO analysis and design Many components class diagrams use cases interaction diagrams..."— Presentation transcript:

1 A little bit of UML Csaba Veres

2 UML A de facto standard for OO analysis and design Many components class diagrams use cases interaction diagrams...

3 Perspectives Conceptual model (analysis) language independent often no direct mapping from concepts to classes Specification (design) interface, not implementation types rather than classes a type can have many implementations as classes Implementation classes, methods, etc.

4 Associations a conceptual relationship between classes an Order comes from a single Customer and one Customer can make several Orders a specification of responsibility a Customer knows about its Orders an implementation of pointers or some sort of reference class Customer { private Vector _orders;

5

6 Detail Concept model: multiplicity Implementation model: navigability

7 Multiplicity (cardinality)

8 Navigability

9 > a high-level classification of the ”sort of” object an object is controller interface suggests certain general responsibilities can be used to extend basic UML semantics can stereotype classes, relationships, etc.

10 Multiple classification an object may be described by several types not necessarily connected by inheritance i.e. multiple classification  multiple inheritance mi states that an object must have a single type (with several supertypes) mc states that an object could be defined as one of several types, depending on the purpose

11

12 Multiple classification (2) Legal objects: (Female,Patient,Nurse) (Male,Physiotherapist) (Female,Doctor,Surgeon) Illegal objects (Patient,Doctor) (Male,Doctor,Nurse)

13 Dynamic classification

14 Aggregation and composition

15 person male female gender  {} Person Male Female sex {complete} Gender type {complete} must be male or female Gender

16 partition PersonGender >


Download ppt "A little bit of UML Csaba Veres. UML A de facto standard for OO analysis and design Many components class diagrams use cases interaction diagrams..."

Similar presentations


Ads by Google