Professional Documents
Culture Documents
12 SubsystemDesign
12 SubsystemDesign
Analyze Behavior
(Optional)
Refine the
Architecture
Subsystem
Design Designer Define Design the
Components Database
Design Subsystems
and Interfaces
Subsystem
Project Specific
Design
Guidelines
Design Classes
Realization (Canonical
Subsystem
Interface form)
<<subsystem>>
Subsystem Name
Interface
Realization (Elided form)
Object Oriented Analysis and Design
5
Hướng dẫn hệ thống con
Mục tiêu
Liên kết lỏng lẻo <<subsystem>>
Khả chuyển, khả năng tương thích A
cao
Ít bị ảnh hưởng bởi các thay đổi
Tiến hóa độc lập <<subsystem>>
Các gợi ý B
<<subsystem>>
CourseCatalogSystem
ICourseCatalogSystem
<<subsystem>> package
ICourseCatalogSystem
subsystem responsibility
Object Oriented Analysis and Design
10
Phân phối trách nhiệm hệ thống con
Xác định các thành phần thiết kế mới, hoặc sử dụng lại
(ví dụ, lớp và/hoặc hệ thống con)
Đặt trách nhiệm cho hệ thống con vào các thành phần
thiết kế
Phối hợp các cơ chế có thể áp dụng (Ví dụ, lưu trữ,
phân phối)
Tài liệu hóa sự cộng tác các thành phần thiết kế trong
“hiện thực hóa giao diện”
Một hoặc nhiều biểu đồ tương tác cho một hành vi
giao diện
Biểu đồ lớp chứa mối quan hệ giữa các thành phần
thiết kế
Xem lại “Xác định các thành phần thiết kế”
Điều chỉnh biên hệ thống con và các phụ thuộc nếu
cần
performResponsibility( )
Op1( )
Subsystem Op2( )
responsibility
Internal
Op3( ) subsystem
interactions
Op4( )
1://create schedule( )
2://get course offerings( )
3://get course offerings( ) Subsystem
Student wishes to 4://display course offerings( )
interface
create a new
schedule
Subsystem responsibility
5://display blank schedule( )
9://add schedule(Schedule)
Ö - Done
: Course Catalog
1. getCourseOfferings(Semester)
Retrieve all available course
offerings for the current
semester
Subsystem Proxy
1.1. read(string)
1.1.1. createStatement( )
sql statement is passed in
specifying the search criteria 1.1.2. executeQuery(String)
course offerings in the
current semester 1.1.2.1. // executeQuery( )
1. // close registration( )
1.1. // is registration open?( ) Retrieve a list of course
offerings for the current
semester
2. // close registration( )
Close
2.1. getCourseOfferings(Semester) registration for
each course
offering If the maximum number of
Repeat twice this selected primary courses have
is for simplicity; 2.2. // close registration( )
not been committed, select
realistically, an alternate course offerings).
indefinite number
of iterations could
occur) 2.3. // level( )
Finally commit or
2.4. // close( ) Currently assuming tuition based on
cancel the course
offering once all number of offerings taken and certain
leveling has occurred attributes of students. If different offerings
get different prices this will change slightly.
2.5. getTuition( )
Gửi sinh viên và học phí
Đến hệ thống Billing System
để tính toán chi phí 2.6. submitBill(Student, double)
Cho lịch của sinh viên
1. submitBill(Student, double)
Retrieve the
information that must
1.1. create(Student, double) be included on the bill
1.2. submit(StudentBillingTransaction)
<<Interface>>
ICourseCatalogSystem
(from External System Interfaces)
Subsystem Proxy
getCourseOfferings(forSemester : Semester) : CourseOfferingList
<<subsystem proxy>>
CourseCatalogSystem
Giao diện hệ thống con
getCourseOfferings(forSemester : Semester) : CourseOfferingList
CourseOfferingList
(from University Artifacts) DBCourseOfferring
0..*
1
<<Entity>>
CourseOffering Connection
(from University Artifacts) (from java.sql) Statement
(from java.sql) ResultSet
(from java.sql)
new() createStatement()
executeQuery()
setData() getString()
executeUpdate()
submitBill() StudentBillingTransaction
Subsystem Proxy
0..1
BillingSystemInterface
submit(theTransaction : StudentBillingTransaction)
<<subsystem>>
Client Support
Supporting Sử dụng
Types
cẩn thận
<<subsystem>>
CourseCatalogSystem
(from Business Services)
External System
Interfaces
(from Business Services)
University Artifacts
(from Business Services)
java.sql
(from Middleware)
<<subsystem>>
BillingSystem
(from Business Services)
External System
Interfaces
(from Business Services)
University Artifacts
(from Business Services)
(continued)
(continued)