SYST37028 - Sheridan College
Download
Report
Transcript SYST37028 - Sheridan College
Today
o Sequence Diagrams- View & Data Layers
• Message syntax
o Design Class Diagrams
o Cohesion & Coupling
Sheridan
Object Oriented Methods
1
Sheridan
Object Oriented Methods
2
Sheridan
Object Oriented Methods
3
One-to-many with superior to
subordinate. The visibility goes
from the superior to the
subordinate
Mandatory relationships for
existence. Visibility goes from
independent to dependent
Object needs information from
another object. Visibility goes to
object with the information
Navigational arrows may be
bidirectional
Sheridan
Object Oriented Methods
4
Sheridan
Object Oriented Methods
5
UML does not distinguish between design class notation and
domain model notation
Domain model class diagram shows conceptual classes in
users’ work environment
Design class diagram specifically defines software classes
UML uses stereotype notation to categorize a model element
by its characteristics
Sheridan
Object Oriented Methods
6
Sheridan
Object Oriented Methods
7
Navigation visibility
o Describes which objects can interact with each other
Coupling
o Measures how closely classes are linked
Cohesion
o Measures the consistency of functions in a class
Separation of responsibilities
o Divides a class into several highly cohesive classes
Sheridan
Object Oriented Methods
8
Coupling – qualitative measure of how closely classes in a
design class diagram are linked
o Number of navigation arrows in design class diagram or
messages in a sequence diagram
o Loosely coupled – system is easier to understand and maintain
Cohesion – qualitative measure of consistency of functions
within a single class
o Separation of responsibility – divide low cohesive class into
several highly cohesive classes
o Highly cohesive – system is easier to understand and maintain
and reuse is more likely
Sheridan
Object Oriented Methods
9
Reference & Example:
o http://en.wikipedia.org/wiki/Coupling_(computer_programming)
o http://www.scribd.com/doc/60141117/6/Tightly-Coupled-vs-
Loosely-Coupled-Systems
o http://soa.sys-con.com/node/439723
o http://stackoverflow.com/questions/2868627/why-should-a-webarchitecture-be-loosely-coupled
Sheridan
Object Oriented Methods
10
A multi layered system
Sheridan
Object Oriented Methods
11
Sheridan
Object Oriented Methods
12
Sheridan
Object Oriented Methods
13
Example – Create new Customer for a Customer
Relationship Management System (CRM)
Sheridan
Object Oriented Methods
14
Sheridan
Object Oriented Methods
15
Sheridan
Object Oriented Methods
16
Sheridan
Object Oriented Methods
17
Sheridan
Object Oriented Methods
18