+ All Categories
Home > Engineering > Designing PrinciplesOf Software

Designing PrinciplesOf Software

Date post: 14-Jan-2017
Category:
Upload: ankita-agrawal
View: 9 times
Download: 0 times
Share this document with a friend
26
Transcript
Page 1: Designing PrinciplesOf Software
Page 2: Designing PrinciplesOf Software

SUBMITTED BY: SUBMITTED TO: ANKITA AGRAWAL MS. AArti goswami (BCA 5Th SEM)

MOHANLAL SUKHADIYA UNIVERSITY, UDAIPUR

Page 3: Designing PrinciplesOf Software

DESIGNING CONCEPT

Page 4: Designing PrinciplesOf Software
Page 5: Designing PrinciplesOf Software

Content Control hierarchy

Structural partitioning

Data structure

Software procedure

Information hiding

Cohesion

collision

Page 6: Designing PrinciplesOf Software

Control HierarchyControl hierarchy, also called program structure, represents the organization of program components (modules) and implies a hierarchy of control. Referring to depth and width provide an indication of the number of levels of control and overall span of control, respectively. Fan-out is a measure of the number of modules that are directly controlled by another module. Fan-in indicates how many modules directly control a given module.

Page 7: Designing PrinciplesOf Software
Page 8: Designing PrinciplesOf Software
Page 9: Designing PrinciplesOf Software

Structural Partitioning If the architectural style of a system is hierarchical, the program structure can be partitioned both horizontally and vertically.

The simplest approach to horizontal partitioning defines three partitions—input, data transformation (often called processing) and output.

Vertical partitioning, often called factoring, suggests that control (decision making) and work should be distributed top-down in the program structure.

Page 10: Designing PrinciplesOf Software
Page 11: Designing PrinciplesOf Software
Page 12: Designing PrinciplesOf Software

Data StructureData structure is a representation of the logical relationship among individual elements of data. Because the structure of information will invariably affect the final procedural design, data structure is as important as program structure to the representation of software architecture. Sequential dsVector dsLinked ds

Page 13: Designing PrinciplesOf Software
Page 14: Designing PrinciplesOf Software

Software Procedure Program structure defines control hierarchy without regard to the sequence of processing and decisions. Software procedure focuses on the processing details of each module individually. Procedure must provide a precise specification of processing, including sequence of events, exact decision points, repetitive operations, and even data organization and structure.

Page 15: Designing PrinciplesOf Software
Page 16: Designing PrinciplesOf Software
Page 17: Designing PrinciplesOf Software

Information Hiding The concept of modularity leads every software designer to a fundamental question: "How do we decompose a software solution to obtain the best set of modules?“The principle of information hiding suggests that modules be characterized by design decisions that (each) hides from all others. The use of information hiding as a design criterion for modular systems provides the greatest benefits when modifications are required during testing and later, during software maintenance. Because most data and procedure are hidden from other parts of the software, inadvertent errors introduced during modification are less likely to propagate to other locations within the software.

Page 18: Designing PrinciplesOf Software
Page 19: Designing PrinciplesOf Software

Cohesion Cohesion is a natural extension of the information hiding concept described in figure. A cohesive module performs a single task within a software procedure, requiring little interaction with procedures being performed in other parts of a program. Stated simply, a cohesive module should (ideally) do just one thing.

Page 20: Designing PrinciplesOf Software

As an example of low cohesion, consider a module that performs error processing for an engineering analysis package. The module is called when computed data exceed pre-specified bounds. It performs the following tasks: (1) computes supplementary data based on original computed data. (2) produces an error report (with graphical content) on the user's workstation. (3) performs follow-up calculations requested by the user. (4) updates a database. (5) enables menu selection for subsequent processing.

Page 21: Designing PrinciplesOf Software

Although the preceding tasks are loosely related, each is an independent functional entity that might best be performed as a separate module. Combining the functions into a single module can serve only to increase the likelihood of error propagation when a modification is made to one of its processing tasks.Procedural cohesionCommunicational cohesion

Page 22: Designing PrinciplesOf Software
Page 23: Designing PrinciplesOf Software

Coupling Coupling is a measure of inter-connection among modules in a software structure. Coupling depends on the interface complexity between modules, the point at which entry or reference is made to a module, and what data pass across the interface

Page 24: Designing PrinciplesOf Software
Page 25: Designing PrinciplesOf Software

. Figure provides examples of different types of module coupling. Modules a and d are subordinate to different modules. Each is unrelated and therefore no direct coupling occurs. Module c is subordinate to module a and is accessed via a conventional argument list, through which data are passed. As long as a simple argument list is present (i.e., simple data are passed; a one-to-one correspondence of items exists), low coupling (called data coupling) is exhibited in this portion of structure. A variation of data coupling, called stamp coupling, is found when a portion of a data structure (rather than simple arguments) is passed via a module interface. This occurs between modules b and a.

Page 26: Designing PrinciplesOf Software

THANK YOU


Recommended