uml

Information about uml

Published on October 24, 2007

Author: Malden

Source: authorstream.com

Content

UML – Class Diagrams Lesson - 9:  UML – Class Diagrams Lesson - 9 Objectives:  Objectives What is UML? UML Diagrams Use Case Diagram Class Diagram What is UML? :  What is UML? The Unified Modeling Language (UML) is a standard  language for specifying, visualizing, constructing, and documenting the artifacts of software systems, as well as for business modeling and other non-software systems. UML uses graphical notations to express the design of software projects. Modeling is necessary for readability and reuse of systems. UML Diagrams :  UML Diagrams UML modeling consists of nine different diagrams to model a software system. Each UML diagram is designed to let developers and customers view a software system from a different perspective and in varying degrees of abstraction. UML Diagrams :  UML Diagrams Use case Diagram Class Diagram Object Diagram State Diagram Activity Diagram Sequence Diagram Collaboration diagram Component diagram Deployment diagram Use case Diagram:  Use case Diagram Use case diagram displays the relationship among actors and use cases. Actors: An actor is any entity that performs certain roles in a given system. For example, In a banking application, a customer entity represents an actor. Similarly, the person who provides service at the counter is also an actor. Use case Diagram:  Use case Diagram Use Case: A use case in a use case diagram is a visual representation of a distinct business function in a system. For example, In a banking application, a deposit function represents a use case. To identify use cases, you should list the discrete business functions the user might do in order to complete an action. For a banking application it might be: deposit money withdraw money Use case Diagram:  Use case Diagram Class Diagram :  Class Diagram Class diagrams model class structure and contents using design elements such as classes, packages and objects. A class diagram is a diagram showing a collection of classes and interfaces, along with the collaborations and relationships among classes and interfaces. A class diagram is composed of: Class: A class has a business functionality called methods, and properties that reflect unique features of a class. The properties of a class are called attributes. Class Diagram:  Class Diagram For example: Let us take a class named Student. The Student class encapsulates student information such as student id #, student name, and so forth. Student id, student name, and so on are the attributes of the Student class. The Student class also exposes functionality to other classes by using methods such as getStudentName(), getStudentId(), and the like. Let us take a look at how a class is represented in a class diagram. Class Diagram :  Class Diagram The following diagram shows a typical class in a class diagram: Elements of a Class Diagram :  Elements of a Class Diagram Attributes correspond to the class level variables (but not variables declared within the body of a method). Operations correspond to methods in Java. Public members (attributes or operations) can be referenced directly by any classes in this or any other model package (more on packages later). Private members can only be referenced in the same class where they’re declared. Protected members can be referenced in the same class or in any descendants of that class (more on inheritance later). Package scope members can be referenced by any classes in the same UML package only. Access Specifiers:  Access Specifiers Static Members:  Static Members Static members can be referenced without instantiating the class to which they belong. In UML, static members are underlined. Abstract Classes:  Abstract Classes Abstract classes are partially implemented and force us to extend it before we can use its functionality. In class diagrams, the name of an abstract class is specified in italics Abstract methods that must be implemented in subclasses of the abstract class are again specified in italics. Dependencies :  Dependencies A dependency is a using relationship that states that a change in a specification of one thing may effect another thing that uses it You will use dependencies in the context of classes to show that one class uses another class as an argument in its method’s signature. Generalization:  Generalization A generalization is a relationship between a general thing (a superclass) and a more specific kind of that thing (a subclass). It is a is-a-kind-of relationship. Association :  Association An association represents a relationship that specifies that objects of one thing are connected to objects of another. Aggregation:  Aggregation An association in which one class represents a larger thing, which consists of smaller things is called an aggregation relation It is a has-a relationship meaning an object of the whole has objects of the part. Composite:  Composite In a composite aggregation, an object may be a part of only one composite at a time. For example, a Frame belongs to exactly one Window. In simple aggregation, a part may be shared by several wholes. For example a Wall may be a part of one or more Room objects. Realization-Interfaces:  Realization-Interfaces A realization relationship shows that one class implements the interface of another class. A realization can be represented in two ways. Design View (canonical form) System’s Implementation View (elided form) Realization:  Realization Packages:  Packages Package - Client:  Package - Client Package - Policies :  Package - Policies Package - GUI:  Package - GUI

Related presentations


Other presentations created by Malden

Brickner2
02. 05. 2008
0 views

Brickner2

staple foods
04. 10. 2007
0 views

staple foods

2003 prelims
05. 10. 2007
0 views

2003 prelims

Radar7
07. 10. 2007
0 views

Radar7

Challenges in the asian market
09. 10. 2007
0 views

Challenges in the asian market

prefix delegation requirement 01
09. 10. 2007
0 views

prefix delegation requirement 01

CBCH3
10. 10. 2007
0 views

CBCH3

nile croc
11. 10. 2007
0 views

nile croc

320 circulation 2
12. 10. 2007
0 views

320 circulation 2

NIKE
12. 10. 2007
0 views

NIKE

phone int may99
18. 10. 2007
0 views

phone int may99

Planning Your Career
21. 10. 2007
0 views

Planning Your Career

Havlik pres
12. 10. 2007
0 views

Havlik pres

The agricultural revolution
23. 10. 2007
0 views

The agricultural revolution

Lesson 13 War in the Atlantic
23. 10. 2007
0 views

Lesson 13 War in the Atlantic

BOJapan
09. 10. 2007
0 views

BOJapan

ESYS150 06 lect9
30. 10. 2007
0 views

ESYS150 06 lect9

Graduation Final Project
22. 10. 2007
0 views

Graduation Final Project

PresentaciÃn Coopagua
22. 10. 2007
0 views

PresentaciÃn Coopagua

Neck infect 980225
03. 01. 2008
0 views

Neck infect 980225

Finished project
03. 01. 2008
0 views

Finished project

Holland Hoisting
04. 01. 2008
0 views

Holland Hoisting

Middle School Seminar
04. 01. 2008
0 views

Middle School Seminar

Properties of Water
05. 01. 2008
0 views

Properties of Water

Campaigns Elections presentation
07. 01. 2008
0 views

Campaigns Elections presentation

Sustainable Energy
07. 01. 2008
0 views

Sustainable Energy

dossier level club para eventos
23. 10. 2007
0 views

dossier level club para eventos

MAROKKO 2004
24. 10. 2007
0 views

MAROKKO 2004

Vortrag Journee Partenaires07
17. 10. 2007
0 views

Vortrag Journee Partenaires07

Ahmed Presentation
21. 11. 2007
0 views

Ahmed Presentation

A Exam Sethu
30. 09. 2007
0 views

A Exam Sethu

bresil ecotourisme
20. 11. 2007
0 views

bresil ecotourisme

Chapter10
02. 10. 2007
0 views

Chapter10

85VideoCompress
27. 02. 2008
0 views

85VideoCompress

lis618p03s 08
08. 10. 2007
0 views

lis618p03s 08

0170128 indiv all
16. 03. 2008
0 views

0170128 indiv all

ECOMM2003 conclusion
20. 03. 2008
0 views

ECOMM2003 conclusion

GPTM 20 Aniversary
10. 04. 2008
0 views

GPTM 20 Aniversary

L7
15. 10. 2007
0 views

L7

healthyfamilyppt
04. 03. 2008
0 views

healthyfamilyppt

cdrllc
22. 04. 2008
0 views

cdrllc

Web 2.0 Technologies
30. 10. 2007
0 views

Web 2.0 Technologies

AngelDevil
01. 10. 2007
0 views

AngelDevil

Enagic
07. 05. 2008
0 views

Enagic

April2006Sandra
08. 05. 2008
0 views

April2006Sandra

3017TechThemesPPT
20. 02. 2008
0 views

3017TechThemesPPT

Maintenance
30. 04. 2008
0 views

Maintenance

Ethics23Apr08
02. 05. 2008
0 views

Ethics23Apr08

mis1
02. 05. 2008
0 views

mis1

self study x rayfilm screens
02. 05. 2008
0 views

self study x rayfilm screens

idlingpresentationpr oposed
26. 02. 2008
0 views

idlingpresentationpr oposed

NKKM
02. 05. 2008
0 views

NKKM

bsirl book
02. 05. 2008
0 views

bsirl book

8thForum ClosingPlenaryInclTB G3
12. 03. 2008
0 views

8thForum ClosingPlenaryInclTB G3

NASPL speech without pics
07. 04. 2008
0 views

NASPL speech without pics

1st review
15. 10. 2007
0 views

1st review

docNews404
19. 10. 2007
0 views

docNews404

Leo Visconti 01
16. 11. 2007
0 views

Leo Visconti 01

century
19. 10. 2007
0 views

century

Chap11
09. 04. 2008
0 views

Chap11

aula eso 1103
24. 10. 2007
0 views

aula eso 1103

biografia
23. 10. 2007
0 views

biografia

5 3
11. 10. 2007
0 views

5 3

IHY ParticiaptingCountri es
19. 10. 2007
0 views

IHY ParticiaptingCountri es

11 Cosmopolitanism
31. 12. 2007
0 views

11 Cosmopolitanism

Online Orientation 8 10 07
06. 12. 2007
0 views

Online Orientation 8 10 07

guida
22. 10. 2007
0 views

guida

ds web host
18. 04. 2008
0 views

ds web host

moni200510
10. 10. 2007
0 views

moni200510

Indicators Billings
07. 01. 2008
0 views

Indicators Billings

seml
29. 09. 2007
0 views

seml

Introduction national 2007
03. 10. 2007
0 views

Introduction national 2007

GUS KOEHLERCalEd4 03
11. 04. 2008
0 views

GUS KOEHLERCalEd4 03

6 Macabrey
17. 10. 2007
0 views

6 Macabrey

YEP05
10. 12. 2007
0 views

YEP05