Top Banner
UML Nguyen Thanh Tuan @Platform Department
36

UML (Unified Modeling Language)

Jan 20, 2017

Download

Technology

Nguyen Tuan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: UML (Unified Modeling Language)

UMLNguyen Thanh Tuan@Platform Department

Page 2: UML (Unified Modeling Language)

UML definationUML stands for Unified Modeling Language which is used in object oriented software engineering. Although typically used in software engineering it is a rich language that can be used to model an application structures, behavior and even business processes. There are 14 UML diagram types to help you model these behavior.

+ structure diagrams

+ behavioral diagrams

Page 3: UML (Unified Modeling Language)
Page 4: UML (Unified Modeling Language)
Page 5: UML (Unified Modeling Language)

UML Notation (Class)

Abstract class

Page 6: UML (Unified Modeling Language)

UML Notation ( Interface)

Page 7: UML (Unified Modeling Language)

UML Notation (Object)

Page 8: UML (Unified Modeling Language)

UML Notation ( Generalization)

Page 9: UML (Unified Modeling Language)

Dependency

Page 10: UML (Unified Modeling Language)

UML Notation ( Aggregation)

Page 11: UML (Unified Modeling Language)

Class diagramClass diagrams are arguably the most used UML diagram type. It is the main

building block of any object oriented solution. It shows the classes in a system,

attributes and operations of each class and the relationship between each class.

In most modeling tools a class has three parts, name at the top, attributes in the

middle and operations or methods at the bottom. In large systems with many

related classes, classes are grouped together to create class diagrams. Different

relationships between classes are shown by different types of arrows.

Page 12: UML (Unified Modeling Language)
Page 13: UML (Unified Modeling Language)

Component DiagramA component diagram displays the structural relationship of components of a software system. These are mostly used when working with complex systems that has many components. Components communicate with each other using interfaces. The interfaces are linked using connectors

Page 14: UML (Unified Modeling Language)
Page 15: UML (Unified Modeling Language)

Deployment DiagramA deployment diagrams shows the hardware of your system and the software in those hardware. Deployment diagrams are useful when your software solution is deployed across multiple machines with each having a unique configuration

Page 16: UML (Unified Modeling Language)
Page 17: UML (Unified Modeling Language)

Object DiagramObject Diagrams, sometimes referred as Instance diagrams are very similar to class diagrams. As class diagrams they also show the relationship between objects but they use real world examples. They are used to show how a system will look like at a given time. Because there is data available in the objects they are often used to explain complex relationships between objects.

Page 18: UML (Unified Modeling Language)
Page 19: UML (Unified Modeling Language)

Package DiagramAs the name suggests a package diagrams shows the dependencies between different packages in a system

Page 20: UML (Unified Modeling Language)
Page 21: UML (Unified Modeling Language)

User case DiagramA names a type of user (actors) and something that they want to do (use case). An actor can be a human, a UseCase A use case device, or a piece of software but it must not be part of the system we are producing. The use case describes how an actor achieves a specific tangible goal. The important part of a use case is the description of the steps that the actors take to achieve their goals and how the system appears to respond to the actors actions

Page 22: UML (Unified Modeling Language)
Page 23: UML (Unified Modeling Language)

Activity DiagramActivity diagrams represent workflows in an graphical way. They can be used to describe business workflow or the operational workflow of any component in a system. Sometimes activity diagrams are used as an alternative to State machine diagrams

Page 24: UML (Unified Modeling Language)
Page 25: UML (Unified Modeling Language)

State Machine DiagramState machine diagrams are similar to activity diagrams although notations and usage changes a bit. They are sometime known as state diagrams or start chart diagrams as well. These are very useful to describe the behavior of objects that act different according to the state they are at the moment

Page 26: UML (Unified Modeling Language)
Page 27: UML (Unified Modeling Language)

Sequence DiagramSequence diagrams in UML shows how object interact with each other and the order those interactions occur. It’s important to note that they show the interactions for a particular scenario. The processes are represented vertically and interactions are show as arrows

Page 28: UML (Unified Modeling Language)
Page 29: UML (Unified Modeling Language)
Page 30: UML (Unified Modeling Language)

Communication DiagramCommunication diagram was called collaboration diagram in UML 1. It is similar to sequence diagrams but the focus is on messages passed between objects. The same information can be represented using a sequence diagram and different objects

Page 31: UML (Unified Modeling Language)
Page 32: UML (Unified Modeling Language)

UML Diagram ExampleOnline shopping

Page 33: UML (Unified Modeling Language)

Online shopping user case diagram

Page 34: UML (Unified Modeling Language)

Online shopping domain model

Page 35: UML (Unified Modeling Language)

Online shopping activity diagram

Page 36: UML (Unified Modeling Language)

Online shopping component diagram