1. Trang chủ
  2. » Vật lí lớp 11

Object-Oriented Design I

10 4 0

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

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 71,3 KB

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

Nội dung

A class is a description of a set of objects that share the same attributes, operations, relationships and semantics... Notation: Interface[r]

Trang 1

Object-Oriented Design I

Trang 2

The Waterfall Model

Requirements

Definition

Implementation and Unit Testing

Integration and

System and Software design

Trang 3

Useful Texts

Grady Booch, James Rumbaugh, Ivar Jacobson, The Unified

Modeling Language Addison-Wesley 1999.

Grady Booch, Object-Oriented Analysis and Design with

Applications, second edition Benjamin/Cummings 1994.

Rob Pooley, Perdita Stevens, Using UML Software

Engineering with Objects and Components Addison-Wesley

1999

Trang 4

The Importance of Modeling

• A model is a simplification of reality

• We build models so that we can better understand the system we are developing

• We build models of complex system because we cannot comprehend such a system in its entirety

Models can be informal or formal The more complex the project the more valuable a formal model becomes.

Trang 5

Principles of Modeling

• The choice of what models to create has a profound influence on how a problem is attacked and how a

solution is shaped

• Every model can be expressed at different levels of precision

• The best models are connected to reality

• No single model is sufficient Every nontrivial system is best approached through a small set of nearly independent models

BRJ

Trang 6

The Unified Modeling Language

UML is a standard language for modeling software systems.

• Serves as a bridge between the requirements specification and the implementation

• Provides a means to specify and document the design of a software system

• Is process and programming language independent

• Is particularly suited to object-oriented program

Trang 7

Notation: Classes

Window

origin size

open() close() move() display()

name attributes

operations

A class is a description of a set of objects that share the same attributes, operations, relationships and semantics

Trang 8

Notation: Interface

An interface is a collection of operations that specify a service of a class or component, i.e., the externally

visible behavior of that element

ISpelling

Trang 9

Notation: Collaboration & Use Case

Place order

A use case is a description of a set of sequence of actions that a system performs that yields an observable result

Chain of responsibility

A collaboration defines an interaction, i.e., a society of

roles and other elements that work together to provide some cooperative behavior

Trang 10

Notation: Active Class

EventManager eventlist

suspend() flush()

An active class is a class whose objects own one or more processes or threads and therefore can initiate

Ngày đăng: 26/02/2021, 10:37

w