19
UML Basics CHATHURANGA JAYANATH WARANASURIYA

Uml Basics

Embed Size (px)

Citation preview

UML Basics CHATHURANGA JAYANATH WARANASURIYA

Why UML

Why UML

Representations

Relationships

ClassClass

+ Name : String- Role : Integer# Section : String

+ display ()- Add ()# edit ()

Class Name

Attributes

Operations

Visibility

Public Private Protected

Abstract Class The name of an abstract class is shown in italics.

Class

Interface An interface may be shown using a rectangle symbol with the keyword «interface» preceding the name.

«interface»Class

ObjectAnonymous instance of the Customer class.

Instance newPatient of the unnamed or unknown class.

ObjectInstance front-facing-cam of the Camera class from android.hardware package.

Instance orderPaid of the Date classhas value July 31, 2011 3:00 pm.

Inheritance Inheritance is indicated by a solid line with a closed, unfilled arrowhead pointing at the super class

Associations Bi-directional (standard) association Indicator Meaning

0..1 Zero or one

1 One only

0..* Zero or more

* Zero or more

1..* One or more

3 Three only

0..5 Zero to Five

5..15 Five to Fifteen

Associations Uni-directional association

Packages An example package element that shows its members inside the package's rectangle boundaries

Packages An example package element

showing its membership via

connected lines

Aggregation Basic aggregation

Composition Composition aggregation

Thank You

Copied From https://www.ibm.com/developerworks/rational/library/content/RationalEdge/sep04/bell/

https://www.tutorialspoint.com/uml/uml_basic_notations.htm

http://www.uml-diagrams.org/class-reference.html

https://app.pluralsight.com/library/courses/uml-introduction/table-of-contents