A little bit of UML Csaba Veres. UML A de facto standard for OO analysis and design Many components...
-
Upload
abraham-harrington -
Category
Documents
-
view
220 -
download
0
Transcript of A little bit of UML Csaba Veres. UML A de facto standard for OO analysis and design Many components...
![Page 1: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/1.jpg)
A little bit of UML
Csaba Veres
![Page 2: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/2.jpg)
UML
A de facto standard for OO analysis and design
Many components class diagrams use cases interaction diagrams ...
![Page 3: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/3.jpg)
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.
![Page 4: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/4.jpg)
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;
![Page 5: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/5.jpg)
![Page 6: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/6.jpg)
Detail
Concept model: multiplicity Implementation model:
navigability
![Page 7: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/7.jpg)
Multiplicity (cardinality)
![Page 8: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/8.jpg)
Navigability
![Page 9: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/9.jpg)
<<Stereotypes>> 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.
![Page 10: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/10.jpg)
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
![Page 11: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/11.jpg)
![Page 12: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/12.jpg)
Multiple classification (2)
Legal objects: (Female,Patient,Nurse) (Male,Physiotherapist) (Female,Doctor,Surgeon)
Illegal objects (Patient,Doctor) (Male,Doctor,Nurse)
![Page 13: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/13.jpg)
Dynamic classification
![Page 14: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/14.jpg)
Aggregation and composition
![Page 15: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/15.jpg)
person
male
female
gender {}
Person
Male
Femalesex{complete}
Gender
type{complete}
must be male or female Gender
![Page 16: 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...](https://reader030.fdocuments.in/reader030/viewer/2022032806/56649f005503460f94c16aca/html5/thumbnails/16.jpg)
p e rs o n
g e n d e r
{}partition
Person Gender<<partition>>