class, sequence and uml model. has actors and use cases

29
Diagrams Class, Sequence and UML Model

Upload: roxanne-morrison

Post on 11-Jan-2016

218 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Class, Sequence and UML Model.  Has actors and use cases

DiagramsClass, Sequence and UML Model

Page 2: Class, Sequence and UML Model.  Has actors and use cases

Has actors and use cases

Use Case

Page 3: Class, Sequence and UML Model.  Has actors and use cases

Actors - entities whose behavior appears in the "Actor's Actions" column,

*the entities whose behavior appears in the "System's Response" column are also actors

Use case - sequence of actions that provide something of measurable value to an actor

Actors /Use cases

Page 4: Class, Sequence and UML Model.  Has actors and use cases

Example

Page 5: Class, Sequence and UML Model.  Has actors and use cases

Use Case

Page 6: Class, Sequence and UML Model.  Has actors and use cases

Example

Page 7: Class, Sequence and UML Model.  Has actors and use cases

circle

Class Diagram

Page 8: Class, Sequence and UML Model.  Has actors and use cases

UML Model

Page 9: Class, Sequence and UML Model.  Has actors and use cases

A UML diagram that depicts:◦ interactions between objects.◦ how the business currently works by showing how

various business objects interact. Purpose:

1. Model flow of control2. Identify synchronization3. Illustrate typical scenarios

Sequence Diagram

Page 10: Class, Sequence and UML Model.  Has actors and use cases

The focus is less on messages themselves and more on the order in which messages occur.

The diagram conveys this information along 2 dimensions: ◦ the vertical dimension shows, top down, the time

sequence of messages/calls as they occur, ◦ the horizontal dimension shows, left to right, the

object instances that the messages are sent to.

Elements

Page 11: Class, Sequence and UML Model.  Has actors and use cases

Example I

Creating sequence diagram

Page 12: Class, Sequence and UML Model.  Has actors and use cases

read them from top to bottom. As time increases, it depicts events

happening in the system, Also shows how various parts of the system

react to each other.

Steps

Page 13: Class, Sequence and UML Model.  Has actors and use cases

Purchase order

Example

Page 14: Class, Sequence and UML Model.  Has actors and use cases

MHC - system

Page 15: Class, Sequence and UML Model.  Has actors and use cases

Encoding data sequence diagram

Page 16: Class, Sequence and UML Model.  Has actors and use cases

ATM Sequence Diagram

Page 17: Class, Sequence and UML Model.  Has actors and use cases

Sequence Diagram (Transaction)

Page 18: Class, Sequence and UML Model.  Has actors and use cases

Creating a new event in calendar

Sequence diagram

Page 19: Class, Sequence and UML Model.  Has actors and use cases

These illustrate the dynamic nature of a system by modeling the flow of control from activity to activity.

An activity represents an operation on some class in the system that results in a change in the state of the system.

Activity Diagram

Page 20: Class, Sequence and UML Model.  Has actors and use cases

Example

Page 21: Class, Sequence and UML Model.  Has actors and use cases

Another Example

Page 22: Class, Sequence and UML Model.  Has actors and use cases

depict the various states that an object may be in and the transitions between those states.

State Diagram

Page 23: Class, Sequence and UML Model.  Has actors and use cases

Define states – condition or situation Describe state – add more information on

each state Describe Transitions – join with arrows Define transition triggers – define events Define guard/Constraints – set constraints

on the transition triggers

Steps to draw state diagram

Page 24: Class, Sequence and UML Model.  Has actors and use cases

State diagram for bank amount

Example

Page 25: Class, Sequence and UML Model.  Has actors and use cases

Weather station state diagram

Page 26: Class, Sequence and UML Model.  Has actors and use cases

The Deployment Diagram helps to model the physical aspect of an Object-Oriented software system.

It models the run-time configuration in a static view and visualizes the distribution of components in an application.

Generally, it involves modeling the hardware configurations together with the software components that lived on.

Deployment diagram

Page 27: Class, Sequence and UML Model.  Has actors and use cases

For a simple reservation system

Example

Page 28: Class, Sequence and UML Model.  Has actors and use cases

A Communication diagram models the interactions between objects or parts in terms of sequenced messages.

Communication diagrams represent a combination of information taken from Class, Sequence, and Use Case Diagrams describing both the static structure and dynamic behavior of a system.

Communication diagrams show which elements each one interacts with better, whereas, sequence diagrams show the order in which the interactions take place more clearly.

Collaboration/communication Diagram

Page 29: Class, Sequence and UML Model.  Has actors and use cases

Example