Chapter10 Design and Implementation
Chapter10 Design and Implementation
Design and
Implementation
Prepared by: Mr. KAY HENG
Objective
• The main UML tool that we employ here is the sequence diagram
• Designer thus breaks down the system into smaller units and
provides enough information so that a programmer can code and test
each unit separately
The first step in our design process is to identify the major subsystems.
We can view the library system as composed of two major subsystems:
• Business logic This part deals with input data processing, data creation,
queries, and data updates. This module will also be responsible for interacting
with external storage, storing and retrieving data.
• User interface This subsystem interacts with the user, accepting and outputting
information.
It is important to design the system such that the above parts are
separated from each other so that they can be varied independently
• Please more read on the page 160 in the book Object Oriented
Analysis and Design
Desing: Assigning
Responsibilities to the Classes
• To assign responsibilities to a set of Classes in the software
• For each system response listed in the right-hand column of the use
case tables, we need to specify the following:
• The sequence in which the operations will occur.
• How each operation will be carried out.
Desing: Assigning
Responsibilities to the Classes
• Register Member
Let us see details of the addMember method. The algorithm here
consists of three steps:
1. Create a Member object.
2. Add the Member object to the list of members.
3. Return the result of the operation.
• Library
• MemberList
• Catalog
• Member
• Book
• Hold
• Transaction
Desing: Class Diagrams
• Library
Desing: Class Diagrams
• Member
Desing: Class Diagrams
• Book
Desing: Class Diagrams
• Catalog
• MemberList
Desing: Class Diagrams
• Hold
Desing: Class Diagrams
• Transaction
Desing: User Interface