Presentation is loading. Please wait.

Presentation is loading. Please wait.

SWE 214 (071) Introduction to UML Slide 1 Introduction to UML.

Similar presentations


Presentation on theme: "SWE 214 (071) Introduction to UML Slide 1 Introduction to UML."— Presentation transcript:

1 SWE 214 (071) Introduction to UML Slide 1 Introduction to UML

2 SWE 214 (071) Introduction to UML Slide 2 Overview l What is Modeling? l What is UML? l A brief history of UML l Understanding the basics of UML l UML diagrams l UML Modeling tools

3 SWE 214 (071) Introduction to UML Slide 3 Modeling l Models are abstractions that portray the essentials of a complex problem or structure by filtering out nonessential details. l Describing a system at a high level of abstraction A model of the system Used for requirements and specifications l Models help us organize, visualize, understand, and create complex things. l Is it necessary to model software systems?

4 SWE 214 (071) Introduction to UML Slide 4 What is Visual Modeling? l Visual modeling is a way of thinking about problems using models organized around real-world ideas. l Models are useful for Understanding problems Communicating with everyone involved with the project (customer, domain expert, analyst, designers, etc.) Modeling enterprises Preparing documentation Designing programs and databases

5 SWE 214 (071) Introduction to UML Slide 5 Object Oriented Modeling

6 SWE 214 (071) Introduction to UML Slide 6 What is UML? l UML stands for “Unified Modeling Language” l It is an industry-standard graphical language for specifying, visualizing, constructing, and documenting the artifacts of an object-oriented system under development. l The UML uses mostly graphical notations to express the OO analysis and design of software projects. l Simplifies the complex process of software design

7 SWE 214 (071) Introduction to UML Slide 7 Why UML for Modeling l Use graphical notation to communicate more clearly than natural language (imprecise) and code(too detailed). l Help acquire an overall view of a system. l UML is not dependent on any one language or technology. l UML moves us from fragmentation to standardization.

8 SWE 214 (071) Introduction to UML Slide 8 History of the UML l In 1990s, many different methodologies, along with their own set of notations, were introduced to the market Object Modeling Technique (OMT) (James Rumbaugh) Grady Booch Object-oriented software engineering (OOSE) (Ivar Jacobson) l Method war e.g. is a class a cloud or rectangle? l UML De facto standard

9 SWE 214 (071) Introduction to UML Slide 9

10 SWE 214 (071) Introduction to UML Slide 10 The Unified Modeling Language l Several different notations for describing object-oriented designs were proposed in the 1980s and 1990s. l The Unified Modelling Language is an integration of these notations. l It describes notations for a number of different models that may be produced during OO analysis and design. l It is now a de facto standard for OO modelling.

11 SWE 214 (071) Introduction to UML Slide 11 Object communication l Conceptually, objects communicate by message passing. l Messages The name of the service requested by the calling object; Copies of the information required to execute the service and the name of a holder for the result of the service. l In practice, messages are often implemented by procedure calls Name = procedure name; Information = parameter list.

12 SWE 214 (071) Introduction to UML Slide 12 UML Diagrams l Use case diagram l Sequence diagram l Collaboration diagram l State diagram l Class diagram l Object diagram l Component diagram l Deployment diagram l Activity diagram

13 SWE 214 (071) Introduction to UML Slide 13 Use Case Diagram l Used for describing a set of user scenarios l Mainly used for capturing user requirements l Work like a contract between end user and software developers

14 SWE 214 (071) Introduction to UML Slide 14 Use Case Diagram

15 SWE 214 (071) Introduction to UML Slide 15 Class diagram l Used for describing structure and behavior in the use cases l Provide a conceptual model of the system in terms of entities and their relationships l Used for requirement capture, end-user interaction l Detailed class diagrams are used for developers

16 SWE 214 (071) Introduction to UML Slide 16 Class diagram

17 SWE 214 (071) Introduction to UML Slide 17 Good Practice: CRC Card (Class Responsibility Collaborator) l Benefits: It is easy to describe how classes work by moving cards around; allows to quickly consider alternatives.

18 SWE 214 (071) Introduction to UML Slide 18 Sequence diagram l Sequence diagrams demonstrate the behavior of objects in a use case by describing the objects and the messages they pass. l The horizontal dimension shows the objects participating in the interaction. l The vertical arrangement of messages indicates their order.

19 SWE 214 (071) Introduction to UML Slide 19 Sequence diagram

20 SWE 214 (071) Introduction to UML Slide 20 State diagram State Diagrams show the sequences of states an object goes through during its life cycle in response to stimuli, together with its responses and actions; an abstraction of all possible behaviors.

21 SWE 214 (071) Introduction to UML Slide 21 UML Modeling Tools l Rational Rose (www.rational.com) by IBMwww.rational.com l TogetherSoft Control Center, Borland (http://www.borland.com/together/index.html)http://www.borland.com/together/index.html l ArgoUML (free software) (http://argouml.tigris.org/ ) l OpenSource; written in java l Others (http://www.objectsbydesign.com/tools/umltools_byCom pany.html )http://www.objectsbydesign.com/tools/umltools_byCom pany.html

22 SWE 214 (071) Introduction to UML Slide 22 Reference 1. UML Distilled: A Brief Guide to the Standard Object Modeling Language Martin Fowler, Kendall ScottMartin FowlerKendall Scott 2. IBM Rational http://www- 306.ibm.com/software/rational/uml/http://www- 306.ibm.com/software/rational/uml/ 3. Practical UML --- A Hands-On Introduction for Developers http://www.togethersoft.com/services/practical_guides/umlonl inecourse/ 4. Software Engineering Principles and Practice. Second Edition; Hans van Vliet.


Download ppt "SWE 214 (071) Introduction to UML Slide 1 Introduction to UML."

Similar presentations


Ads by Google