Professional Documents
Culture Documents
Chapter 6
Determining How to Build Your System:
Object-Oriented Design
The purpose of design is to determine how you are going to build your system
& to obtain information needed to drive the actual implementation of your
system. This is different from analysis, which focuses on understanding what
will be built. Design is an iterative process (possibility to come back to the
previous first step and revise things). Analysis and design are highly iterative &
interrelated. Similarly design & Programming are iterative and interrelated.
Persistence
Use case State Chart
Model
Model Diagram
1
Object Oriented System Analysis & Design
Werabe University IT Department
User Interface
(Boundary) Classes
Controller
(Process) Classes
System
Classes
Business/Domain
Entity or Analysis Classes
Persistence Classes
Permanent Storage
System Classes
Are only allowed to send message to other system classes, even though
each type of class is allowed to send messages to system classes.
Provide Operating System specific functionality for your application,
isolating your software from the operating system by wrapping OS-
specific features, in creating the portability of your application.
Persistence Classes:
Used for storing objects, we can create, update, retrieve, delete objects.
Encapsulate the capability to store, retrieve, delete, create objects
permanently without revealing details of the underlying storage
technology.
Business/ Domain Classes:
Implement the concepts pertinent to your business domain.
Enables you to encapsulate the basic business functionality without
2
Object Oriented System Analysis & Design
Werabe University IT Department
3
Object Oriented System Analysis & Design
Werabe University IT Department
A UML state chart diagram for SetTime use case of the SimpleWatch.
6.4 Collaboration Modeling
Shows collaboration of different objects in our system. Similar to
sequence diagram in analysis which shows class & object collaboration.
Used to show the bahaviour of several objects collaborating together to
fulfill a common purpose.
Depicts a bird eye view of the interaction between objects.
Shows the message flow between objects in Object Oriented application
and also, imply the basic assocaiations (relationships) between classes.
Drawing Collaboration Diagram
Collaboration diagrams are usually drawn in parallel with class diagram and
sequence diagram.
1. Identify the scope of the diagram.
2. Identify the objects.
3. Identify the relationships between the objects.
4. Identify the messages passed between the objects.
UML sequence diagrams and UML collaboration diagrams are
interchangeable & their usage often boils down to a matter of personal
taste.
4
Object Oriented System Analysis & Design
Werabe University IT Department
5
Object Oriented System Analysis & Design
Werabe University IT Department
6
Object Oriented System Analysis & Design
Werabe University IT Department
7
Object Oriented System Analysis & Design