1. Trang chủ
  2. » Công Nghệ Thông Tin

Lecture Systems analysis and design with UML (3 e) Chapter 7 Behavioral modeling

22 306 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 22
Dung lượng 453 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Behavioral models describe the internal dynamic aspects of an information system that supports the business processes in an organization. In this chapter, we describe three UML 2.0 diagrams that are used in behavioral modeling: sequence diagrams, communication diagrams, and behavioral state machines.

Trang 1

Chapter 7:

Behavioral Modeling

Trang 2

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

Objectives

• Understand the rules and style guidelines for sequence and communication diagrams and

behavioral state machines.

• Understand the processes used to create

sequence and communication diagrams and

behavioral state machines.

• Be able to create sequence and communication diagrams and behavioral state machines.

• Understand the relationship between the

behavioral models and the structural and

functional models.

Trang 3

Key Ideas

• Behavioral models describe the internal

dynamic aspects of an information system that supports business processes in an

organization

• Key UML behavioral models are: sequence diagrams, collaboration diagrams, and

statechart diagrams

Trang 4

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

BEHAVIORAL MODELS

Trang 5

Behavioral Models

• Systems have static &dynamic characteristics

– Structural models describe the static aspects of the system

– Behavioral models describe the dynamics and

interactions of the system and its components

• Behavioral models describe how the classes described in the structural models interact in

support of the use cases.

Trang 6

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

INTERACTION DIAGRAMS

Trang 7

Interaction Diagram Components

Trang 8

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

Trang 9

Sequence Diagram Syntax

Trang 10

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

More Sequence Diagram Syntax

Trang 11

Sample Sequence Diagram

Trang 12

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

Steps to Build Sequence Diagrams

1 Set the context

2 Identify which objects will participate

3 Set the lifeline for each object

4 Lay out the messages from top to bottom of the

diagram based on the order in which they are sent

5 Add execution occurrence to each object‘s lifeline

6 Validate the sequence diagram

Trang 13

BEHAVIORAL STATE MACHINES

Trang 14

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

Behavioral State Machines

• A dynamic model that shows the different

states through which a single object passes

during its life in response to events, along with its responses and actions

• Typically not used for all objects

– Just for complex ones

Trang 15

Components of State Machines

Trang 16

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

State Machine Syntax

Trang 17

Sample State Machine

Trang 18

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

Steps to Build a State Machine

1 Set the context

2 Identify the initial, final, and stable states of

the object

3 Determine the order in which the object will

pass through the stable states

4 Identify the events, actions, and guard

conditions associated with the transitions

5 Validate the behavioral state machine

Trang 19

CRUD ANALYSIS

Trang 20

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

Trang 21

Sample CRUD Matrix

Trang 22

PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition

Copyright © 2009 John Wiley & Sons, Inc All rights reserved

Ngày đăng: 16/05/2017, 13:42

TỪ KHÓA LIÊN QUAN