0% found this document useful (0 votes)
38 views8 pages

Objective:: Introduction To UML UML Diagrams Overview Introduction To UMLET

The document introduces Unified Modeling Language (UML) by discussing its goals, conceptual model, basic building blocks, and diagram types. UML uses graphical notations to express the design of software projects. It aims to provide a standard, visual modeling language for capturing visions in a way that is easy to understand and communicate. The conceptual model of UML involves learning its basic building blocks - things, relationships, and diagrams. It identifies four categories of things - structural, behavioral, grouping, and annotational. It also describes four types of relationships and provides an overview of the nine diagram types used in UML. The document concludes by listing some example lab tasks involving drawing specific UML diagrams.

Uploaded by

Kanwal Shahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views8 pages

Objective:: Introduction To UML UML Diagrams Overview Introduction To UMLET

The document introduces Unified Modeling Language (UML) by discussing its goals, conceptual model, basic building blocks, and diagram types. UML uses graphical notations to express the design of software projects. It aims to provide a standard, visual modeling language for capturing visions in a way that is easy to understand and communicate. The conceptual model of UML involves learning its basic building blocks - things, relationships, and diagrams. It identifies four categories of things - structural, behavioral, grouping, and annotational. It also describes four types of relationships and provides an overview of the nine diagram types used in UML. The document concludes by listing some example lab tasks involving drawing specific UML diagrams.

Uploaded by

Kanwal Shahid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

LAB # 01

OBJECTIVE:
 Introduction to UML
 UML diagrams overview
 Introduction to UMLET

Introduction to UML
The UML is a visual modeling language that enables system builders to create blueprints that
capture their visions in a standard, easy to understand way, and provides a mechanism to effectively
share and communicate these visions with others.

The UML is very important part of developing object oriented software and the software
development process. The UML uses mostly graphical notations to express the design of software
projects.

Goals of UML
 Provide users with a ready-to-use, expressive visual modeling language so they can develop
and exchange meaningful models.
 Provide extensibility and specialization mechanisms to extend the core concepts.
 Be independent of particular programming languages and development processes.
 Provide a formal basis for understanding the modeling language.
 Encourage the growth of the OO tools market.
 Support higher-level development concepts such as collaborations, frameworks, patterns
and components.
 Integrate best practices.

Conceptual Model of the UML

To understand the UML, you need to form a conceptual model of the language, and this requires
learning three major elements. Elements:

 Basic building blocks


 Rules
 Common Mechanisms

1
Software Design and Architecture
Basic Building Blocks of the UML

The vocabulary of the UML encompasses three kinds of building blocks:

 Things
 Relationships
 Diagrams

Things in the UML

There are four kinds of things in the UML:

 Structural — nouns of UML models.

 Behavioral — dynamic (verbal) parts of UML models.

 Grouping — organizational parts of UML models.

 Annotational — explanatory parts of UML models.

Structural Things

These are the Nouns and Static parts of the model. These are representing conceptual or physical
elements.

There are seven kinds of structural things:

1. Class
2. Interface
3. Collaboration
4. Use Case
5. Active Class
6. Component
7. Node

2
Software Design and Architecture
Figure 1: Structural Things

Behavioral Things
Interaction
Is a behavior of a set of objects comprising of a set of messages exchanges within a particular
context to accomplish a specific purpose.

State Machine

It is a behavior that specifies the sequences of states an object or an interaction goes through during
its lifetime in response to events, together with its responses to those events.

3
Software Design and Architecture
Grouping Things
These are the organizational parts of the UML models. There is only one primary kind of group
thing:

Packages

 General purpose mechanism for organizing elements into groups.


 Purely conceptual; only exists at development time.
 Contains behavioral and structural things.
 Can be nested.
 Variations of packages are: Frameworks, models, & subsystems.

Annotational Things
These are Explanatory parts of UML models. These are the Comments regarding other UML
elements (usually called adornments in UML). There is only one primary kind of annotational
thing:

Note

A note is simply a symbol for rendering constraints and comments attached to an element or
collection of elements. Is a best expressed in informal or formal text.

Relationships

There are four kinds of relationships:

1. Dependency
2. Association
3. Generalization
4. Realization

4
Software Design and Architecture
Dependency

Is a semantic relationship between two things in which a change to one thing (the independent
thing) may affect the semantics of the other thing (the dependent thing).

Association

Is a structural relationship that describes a set of links, a link being a connection among objects.

Aggregation

 It is a special kind of association.


 It represents a structural relationship between the whole and its parts.
 Represented by black diamond.

Generalization

It is a specialization/generalization relationship in which objects of the specialized element (the


child) are more specific than the objects of the generalized element.

5
Software Design and Architecture
Realization

It is a semantic relationship between two elements, wherein one element guarantees to carry out
what is expected by the other element.

Diagrams overview

UML includes nine diagrams:

• Class Diagram;
• Object Diagram
• Use case Diagram
• Sequence Diagram;
• Collaboration Diagram
• State chart Diagram
• Activity Diagram
• Component Diagram
• Deployment Diagram

6
Software Design and Architecture
LAB TASKS
Draw the following diagrams using any software for practice:

Figure 2: A use case model of the soda machine

Figure 3: State diagram for GUI

7
Software Design and Architecture
Figure 4: Sequence diagram for soda machine

Figure 5: Activity Diagram for Television

8
Software Design and Architecture

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy