16

Click here to load reader

Uml basic

Embed Size (px)

DESCRIPTION

This is UML basic about component , acitivity , statechart diagram.

Citation preview

Page 1: Uml basic

UML Component Diagram

Page 2: Uml basic

Overview

● Component diagrams are used to model

physical aspects of a system.

● Physical aspects are the elements like

executables, libraries, files, documents etc

which resides in a node

Page 3: Uml basic

Purpose

● Visualize the components of a system.

● Construct executables by using forward and

reverse engineering.

● Describe the organization and relationships of

the components.

Page 4: Uml basic

How to draw Component Diagram?

● Files used in the system.

● Libraries and other artifacts relevant to the

application.

● Relationships among the artifacts.

Before drawing a component diagram the following

artifacts are to be identified clearly:

Page 5: Uml basic

How to draw Component Diagram?

● Use a meaningful name to identify the component for

which the diagram is to be drawn.

● Prepare a mental layout before producing using tools.

● Use notes for clarifying important points.

Now after identifying the artifacts the following

points needs to be followed:

Page 6: Uml basic

Where to use Component Diagrams?

● Model the components of a system.● Model database schema.● Model executables of an application.● Model system's source code.

Now the usage of component diagrams can be described as :

Page 7: Uml basic

UML Statechart Diagram

Page 8: Uml basic

Overview

● It describes different states of a component in a system.

Page 9: Uml basic

Purpose

● To model dynamic aspect of a system.

● To model life time of a reactive system.

● To describe different states of an object during

its life time.

● Define a state machine to model states of an

object.

Page 10: Uml basic

How to draw Statechart Diagram?

Need to identify :

● Important objects.

● States.

● Events.

Page 11: Uml basic

Where to use Statechart Diagrams?

● To model object states of a system.

● To model reactive system. Reactive system

consists of reactive objects.

● To identify events responsible for state changes.

● Forward and reverse engineering.

So the main usages can be described as:

Page 12: Uml basic

UML Activity Diagram

Page 13: Uml basic

Overview

➢ Describe dynamic aspects of the system.

➢ Basically a flow chart to represent the flow form

one activity to another activity.

➢ The activity can be described as an operation of

the system.

Page 14: Uml basic

Purpose

● Draw the activity flow of a system.

● Describe the sequence from one activity to

another.

● Describe the parallel, branched and concurrent

flow of the system.

Page 15: Uml basic

How to draw Activity Diagram?

● Activities

● Association

● Conditions

● Constraints

Page 16: Uml basic

Where to use Activity Diagrams?

● Modeling work flow by using activities.

● Modeling business requirements.

● High level understanding of the system's

functionalities .

● Investigate business requirements at a later

stage.