Software design - Lecture 6. The main topics covered in this chapter include: software design components; traditional approach, programmers approach, system architect approach; decomposition rules; layers rule;...
Trang 1Lecture : 6
Trang 2Ø Principle
Ø Criteria
Trang 4Problem Statement
ü Our task is to design an management information system for a hospital, it should include patient management, doctors management , laboratory management , inventory of equipment and medicines,
Trang 6What to Do not How to do !!
ü A view of an object that focuses on the
information relevant to a particular purpose and ignores the remainder of the information
IEEE Standard 610.121990
ü Abstraction is generally used for handling and
reducing complexity
Trang 7ü Abstraction is simply removal of unnecessary
details
ü To design a complex system, you must identify what about that part other parts should know in order to design their part
Trang 8ü Gives the designer freedom to ignore certain
details, for the time being, and to determine or design the "big picture" aspects of his design
Trang 11ü Components should be specified by all
information needed to use the component –
nothing less and nothing more!
Trang 12A Subsystem is a secondary or subordinate
system within a system.
IEEE Standard 610.121990
Trang 13Ø A subsystem is a functionally cohesive grouping of classes that is a major part of a larger aggregate system
Ø Can be independently ordered, configured or delivered
Ø Subsystems are related to each other via dependency
relations, and communicate with each other via well
defined interfaces
Trang 14Ø Decompose by functional services ie Database Subsystem, User Interface Subsystem etc
Trang 17ü Decomposition of the system into smaller, moremanageable units, that are layered hierarchically.
Ø Each layer supplies one level of abstraction
Ø A layer only uses services of the next underlying
layer
ü Layers can be tested independently
Trang 20ü Layer can request for services from exactly one layer below it
ü Layer can respond to a request of a layer exactly one layer above it
ü Total Layers = N = 3
ü Request = N1
ü Response = N+ 1
ü Example on next slide