Introduction to UML

by K. Yue

1. Resources

UML:

UML and DB Modeling:

2. Introduction to UML

Class Diagram of UML 2.2 diagram (from wikipedia):

UML 2.2 Diagram

3. Use Case Diagrams

Building blocks:

An example use case (from wikipedia): http://en.wikipedia.org/wiki/File:Use_case_restaurant_model.svg

Classwork:

Draw a use case diagram for the SCE TA application.

Classwork: Comments on the following use case diagrams.

Diagram #1: E-Commerce Website with Credit Card Processing Capability

studnet_usecase_1.png

Diagram #2: development of an intelligent Web Crawler to scan Human Recruitment specific content

Uml_diagram2_a.png

Uml_diagram2_b.png

Uml_diagram2_c.png

Diagram #3: an application that will utilize a GPS device to monitor and track a fleet of equipment during a disaster recovery scenario.

DisasterRecoveryUseCase.jpg

How to draw UML diagrams:

Discussion: Just Barely Good Enough (JBGE) modeling and documentation.

Classwork

Construct a reaonable use case diagram for the toy library application

4. Class Diagrams (Emphasis on DB applications)

Introduction:

Classes:

Example:

class_diagram_1.png

Example:

class_diagram_2.png

Associations

Example:

class_diagram_3.png

 

Example:

class_diagram_4.png

What do you think about this composition and aggregation example: http://en.wikipedia.org/wiki/File:AggregationAndComposition.svg?

Example:

class_diagram_5.png

Classwork:

Exercise 7.16 Elmarsi, only in UML class diagram, and not ER. (Elmarsi_7_16.docx)

Example:

class_diagram_6.png

class_diagram_7.png

Examples:

Some class diagrams found in the Web:

Constructing class diagrams

Classwork

Construct a reasonable class diagram for the toy library application.