Presentation is loading. Please wait.

Presentation is loading. Please wait.

Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science 2000-05-09 UML introduction A short introduction.

Similar presentations


Presentation on theme: "Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science 2000-05-09 UML introduction A short introduction."— Presentation transcript:

1 Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science 2000-05-09 UML introduction A short introduction to UML Eivind J. Nordby Karlstad University

2 Dept. of Computer Science Semla 2 page 2 Design Problem Complex systems cannot be understood without modelling Modelling makes design reproductable Modelling is documentation => Generic Language for this Problem Unified Modeling Language (UML) Standard of the OMG Current Version 1.4 (since Sep. 2001) Inventors: Jacobson, Rumbaugh, Booch et all. Goal: Giving developer a general language for communication

3 Karlstad University Dept. of Computer Science Semla 2 page 3 UML UML is a graphical language –Unified Modeling Language UML provides a notation to describe software-intensive systems in an object-oriented way –Is general enough to describe nonsoftware systems Static Modelling –Class Modelling –Component Modelling –Deployment Modelling Dynamic Modelling –Activity/Sequence Modelling –Use Case Modelling –State Modelling

4 Karlstad University Dept. of Computer Science Semla 2 page 4 An example A booking system for room reservation The initiator tell who shall take part in the meeting The system calls the participants by email The participants reply confirm by email When all have confirmed, the system sends an email to the initiator –Support personnel are also notified Cleaning, catering, secretaries, caretaker

5 Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science 2000-05-09 Part 1 Classes and objects Static description

6 Karlstad University Dept. of Computer Science Semla 2 page 6 Basic class description A class is drawn as a box with compartments for –class name –attributes –operations Any but the first can be empty or suppressed

7 Karlstad University Dept. of Computer Science Semla 2 page 7 Inheritance –A connection with an open triangle in the direction to the base class Abstract classes and operations –Italic class name –Italic operation name

8 Karlstad University Dept. of Computer Science Semla 2 page 8 Associations Analysis diagram Multiplicities –0..1, 1, *, 1..*

9 Karlstad University Dept. of Computer Science Semla 2 page 9 Associations Association label –a verb describing the interaction Interpretation of multiplicity Referencial integrity

10 Karlstad University Dept. of Computer Science Semla 2 page 10 Object diagram and links Class diagrams show the general structure with Object diagrams show snapshots –objects are underlined An association is a potential for a link links are instances of associations Links do never have multilplicities

11 Karlstad University Dept. of Computer Science Semla 2 page 11 Role names Role label –a noun describing the role in the interaction

12 Karlstad University Dept. of Computer Science Semla 2 page 12 Aggregations Aggregation –a crew is composed of crew members –expresses whole - parts Composition –a person owns a PID number –expresses exclusive ownership and dependency

13 Karlstad University Dept. of Computer Science Semla 2 page 13 Navigability Analysis expresses relationships Design diagram also expresses navigability –Part of the implementation design of “who keeps track of who”

14 Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science 2000-05-09 Part 2 Interactions Dynamic description

15 Karlstad University Dept. of Computer Science Semla 2 page 15 Interactions

16 Karlstad University Dept. of Computer Science Semla 2 page 16 Interactions

17 Karlstad University Dept. of Computer Science Semla 2 page 17 Interactions Sequence diagram –Time based Life line Call, operation, return Activation record Recursive calls New and delete

18 Karlstad University Dept. of Computer Science Semla 2 page 18 Interactions, new and delete


Download ppt "Improved software quality through semantic descriptions (Skutt) Karlstad University Dept. of Computer Science 2000-05-09 UML introduction A short introduction."

Similar presentations


Ads by Google