




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Course Description
Course introduces the essential concepts of software architecture and design. Both software architecture and design are important phases of software development.
The course will provide a strong foundation to students for coming up with the skills necessary to develop architecture and realize it in design for developing applications fulfilling both functional and non- functional requirements.
Different architectural styles and object oriented design patterns will be taught which will help students to analyze, select and implement design strategies required to realize the selected architecture. Overall course is an essential and great contribution to student’s skills and their software engineering career.
Aim
To provide the students an understanding of concepts and command to develop architecture and design for developing state of the art software applications.
Learning outcomes
On successful completion of this course students would be able to
Argue the importance and role of software architecture and design in software systems.
2.Develop Architecture and Design for software systems.
A software product is an entity comprised of one or more programs, data, and supporting materials and services that satisfies client needs and desires either as an independent artifact or as essential ingredient in some other artifact.
What Is Software Design?
Software design is the activity of specifying the mature and composition of software products that satisfy client needs and desire, subject to constraints.
Software designers do what designers in other disciplines do, except they do it for software products.
What is Software Design?
Design Occurs at Different Levels
Why Design is Hard
Design is difficult because design is an abstraction of the solution which has yet to be created
Top-down strategy : Solve an abstract version of the problem, then add details (refinement)
Bottom-up strategy : Solve parts of a problem and connect them for a complete solution
What is Model?
A model is an entity used to represent another entity (the target ) by establishing
(a) a correspondence between the parts or elements of the target and the parts or elements of the model, and
(b) a correspondence between relationships among the parts or elements of the target and relationships among the parts or elements of the model.
Modeling
A model represents a target by having model parts corresponding to target parts, with relationships between model parts corresponding to relationships between target parts.
Target Model
Modeling in Design
Modeling is used for the following purposes:
Modeling work because models abstract details of the target.
Models can fail if important and relevant details are left out.
Modeling in Software Design
Software design models may be divided into two broad classes: static and
dynamic models
A static model represents aspects of programs that do not change during program execution.
A dynamic model represents what happens during program execution.
Static and Dynamic Models
Static model examples include object and class models, component and deployment diagrams, and data structure diagrams.
Dynamic model examples include use case descriptions, interaction diagrams, and state diagrams.
The Benefits of Good Design
Good design reduces software complexity which makes the software easier to understand and modify. This facilitates rapid development during a project and provides the foundation for future maintenance and continued system evolution.
It enables reuse. Good design makes it easier to reuse code.
It improves software quality. Good design exposes defects and makes it easier to test the software.
Complexity is the root cause of other problems such as security. A program that is difficult to understand is more likely to be vulnerable to exploits than one that is simpler.
Introduction to the Discipline of Design
Table 1: Product and Engineering Designers’
Responsibilities
Software design
The field of software design can be divided into two sub-fields that each demand considerable skill and expertise: software product design and software engineering design.
Software Product Design
Software product design is the activity of specifying software product features, capabilities, and interfaces to satisfy client needs and desires.
Requires skills in user interface and interaction design, communications, industrial design, and marketing
Software Engineering Design
Software engineering design is the activity of specifying programs and sub-systems, and their constituent parts and workings, to meet software product specifications.
Requires skills in programming, algorithms, data structures, software design principles, practices, processes, techniques, architectures, and patterns.
Software Design in the Life Cycle
The software life cycle is the sequence of activities through which a software product passes from initial conception through retirement from service.
Waterfall Life Cycle Model
Requirements Specification Activity
The goal of the requirements specification activity is to specify a product satisfying the needs and desires of clients and other interested parties.
Specification are recorded in a software requirements specification
We assume that every SRS includes a user interface design.
Factors that limit the range of design solutions, such as cost, time, size, user capability, and required technology, are called design constraints. Design constraints are usually given as part of the problem specification
Design Activity
During the design activity, developers figure out how to build the product specified in the SRS. This includes selecting an overall program structure, specifying major parts and sub-systems and their interactions, then determining how each part or sub-system will be built.
The result of the design activity is a design document recording the entire design specification. The design document solves the (engineering) design problem posed in the SRS.
Implementation Activity
Code is written in accord with the specifications in the design document. The product of the implementation activity is a more or less finished, working program satisfying the SRS.
Programming essentially includes some engineering design work. Testing Activity
Programs are run during the testing activity to find bugs.
Testing is usually done bottom up, with small parts or program units tested alone, and then integrated collections of program units
tested as separate sub-systems, and finally the entire program tested as a whole.
Maintenance Activity
Maintenance activity occurs after a product has been deployed to clients
After deployment to clients, products are corrected, ported, and enhanced during maintenance activities.
Product design occurs during the requirements specification and maintenance activities, and engineering design occurs during the design, implementation, and maintenance activities.
Design across the Life Cycle
Figure illustrates how software
design activities are spread
across the life cycle.
Software Product Life Cycle
Requirements (^) Product Design Specification
Design Engineering Design
Implementation
Testing
Maintenance Product Redesign and Engineering Redesign
“What” Versus “How”
Traditional way to make the distinction between requirements and design activities
Not adequate because
◦ Many “what” specifications turn out to be design decisions
◦ Many “how” specifications turn out to be client or customer needs or desires
it should specify a program satisfying client needs and desires, subject to constraints.
Introduction to the Discipline of Design
Software Engineering Design Methods
A software design method is an orderly procedure for generating a precise and complete software design solution that meets clients needs and constraints
Design Method Components
A method typically specifies the following items:
Design Process —A collection of related tasks that transforms a set of inputs into a set of outputs
Design Notations —A symbolic representational system
Design Heuristics —Rules providing guidance, but no guarantee, for achieving some end
Design methods also use design principles stating characteristics of design that make them better or worse.
History of Software Engineering Design Methods
The first design method was stepwise refinement , a top-down technique for decomposing procedures into simpler procedures until programming-level operations are reached.
The dominant design methods from the mid-1970s through the early 1990s were various versions of structured design.
Structured design methods focus on procedural composition but include other sorts of models as well.
Object-oriented design methods emerged in the 1990s in response to shortcomings of structured design methods.
Object-oriented methods promote thinking about programs as collections of collaborating objects rather than in terms of procedural decomposition.
Method Neutrality
Strongly emphasizes object-oriented notations, heuristics, and models.
Most of the notations used in this course are UML notations, but some other important notations are included as well.
A design task is a small job done in the design process, such as choosing classes or operations, or checking whether a model is complete. Notation and task heuristics are discussed throughout the course when notations and design tasks are introduced.
Modeling processes with Activity diagram
Modeling
A picture is worth 1000 words.
A model is a representation of reality, like a model car, airplane.
Most models have both diagrams and textual components.
Simplifies the complex process of software design.
Process
A process is a collection of related tasks that transforms a set of inputs into a set of outputs.
Design Process
A design process is the core of any design endeavor, so it is essential that designers adopt an efficient and effective process.
We need process description notations for design process.
We will use UML Activity diagram.
Activity diagram
An activity diagram shows actions and the flow of control and data between them.
Activity, action and execution
An activity is a non-atomic task or procedure decomposable into actions.
◦ Shipping a product
◦ Wash clothes