Docsity

Software Design Description Guidelines - Project Report | CS 480, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
CS 480 / CS 481 ~ PROJECT
SOFTWARE DESIGN DESCRIPTION (SDD) GUIDELINES
Use of this Guideline
This Software Design Description (SDD) outline is written in general conformance with
recommended practices for describing software designs as presented in
IEEE Standards
1016
,
IEEE Recommended Practice for Software Design Descriptions.
One of the major
features of the IEEE Standard 1016 SDD is presentation of the system's design from
different perspectives or views. A view is intended to present the design to a specific
category of document user, such as a detailed designer, manager, or system user. Even
with this in mind, some portions of the outline have been tailored to the needs of
academic projects. We have chosen to present the user interface design in a draft
version of the User's Manual.
The purpose of the Software Design Description is to document information that:
• describes the functional structure, data, and algorithms to be implemented,
• identifies required system resources,
• can be used to assess the impact of requirements changes,
• assist in producing test cases,
• can be used to verify compliance with requirements, and
• will aid in maintenance activities.
A Software Design Description must contain all the design information needed by users
of the document. Document users will include individuals participating in the design,
those responsible for implementing and testing the system, those responsible for
reviewing the design, and those who will be charged with system maintenance after
delivery. These document users don't necessarily have the same level of software
understanding and therefore, document users may only be interested in selected
portions of the SDD. The information should be both collected and presented in a way
that assures completeness and simplifies dissemination of the information to the
document's readers.
In contrast to the Software Requirements Specification (that is written for the customer
and user), most of the Software Design Description is written for knowledgeable
software professionals. The SDD is the description of how the system will be
constructed and is prepared in direct response to the Software Requirements
Specification that dictates what the system must do.
Care should be exercised to avoid duplication of information in several places within the
SDD. Duplication of information greatly increases the difficulty of maintaining the SDD
and will often lead to the presence of conflicting information. For example, it is easy to
duplicate information describing the calling/called relationship of modules if the
information is presented simultaneously in a program structure diagram and in a
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Software Design Description Guidelines - Project Report | CS 480 and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

CS 480 / CS 481 ~ PROJECT

SOFTWARE DESIGN DESCRIPTION (SDD) GUIDELINES

Use of this Guideline This Software Design Description (SDD) outline is written in general conformance with

recommended practices for describing software designs as presented inIEEE Standards

1016,IEEE Recommended Practice for Software Design Descriptions. One of the major

features of the IEEE Standard 1016 SDD is presentation of the system's design from different perspectives or views. A view is intended to present the design to a specific category of document user, such as a detailed designer, manager, or system user. Even with this in mind, some portions of the outline have been tailored to the needs of academic projects. We have chosen to present the user interface design in a draft version of the User's Manual.

The purpose of the Software Design Description is to document information that:

  • describes the functional structure, data, and algorithms to be implemented,
  • identifies required system resources,
  • can be used to assess the impact of requirements changes,
  • assist in producing test cases,
  • can be used to verify compliance with requirements, and
  • will aid in maintenance activities.

A Software Design Description must contain all the design information needed by users of the document. Document users will include individuals participating in the design, those responsible for implementing and testing the system, those responsible for reviewing the design, and those who will be charged with system maintenance after delivery. These document users don't necessarily have the same level of software understanding and therefore, document users may only be interested in selected portions of the SDD. The information should be both collected and presented in a way that assures completeness and simplifies dissemination of the information to the document's readers.

In contrast to the Software Requirements Specification (that is written for the customer and user), most of the Software Design Description is written for knowledgeable software professionals. The SDD is the description of how the system will be constructed and is prepared in direct response to the Software Requirements Specification that dictates what the system must do.

Care should be exercised to avoid duplication of information in several places within the SDD. Duplication of information greatly increases the difficulty of maintaining the SDD and will often lead to the presence of conflicting information. For example, it is easy to duplicate information describing the calling/called relationship of modules if the information is presented simultaneously in a program structure diagram and in a

subsection of the module description that documents module interfaces. There are numerous other places where duplication can occur. Be careful!

The following paragraphs provide the structure to be used in preparing the SDD and provides guidance on the contents of each section.

Title Page & Table of Contents Begin your document with a title page that includes the document title, name of project, author name, and date. Include a document table of contents following the title page.

1.0 INTRODUCTION

1.1 Product Overview This scope section contains a summary and brief description of the product to be developed and its intended use. The purpose of this section is to give the reader a preview of the document's contents and the products to which it applies. A single paragraph should suffice. Briefly summarize the major requirements this product must satisfy.

1.2 References and Applicable Documents This subsection contains a list of the documents that directly relate to the preparation and understanding of the product whose design is presented in this SDD. Examples include the Software Requirements Specification that defines the functional nature of the system, the draft User's Manual that presents the external characteristics of the user interface, and technical manuals that describe features of the target hardware and operating environment that have dictated certain design characteristics. Documents that describe existing application and/or support software that will interface with the system under development must be identified. It is not necessary to reference books on specific software design methodologies. Include complete bibliographic information for each entry.

1.3 Definitions, Abbreviations, and Acronyms List all definitions, abbreviations, and acronyms that appear in the SDD and that are not defined in other existing product documentation. Terminology used in the SDD must be consistent with terminology used in other project documents and the Data Dictionary.

2.0 SYSTEM DESIGN DESCRIPTION OVERVIEW The primary purpose of this section is to provide the reader (most likely your supervisor or instructor, but could also be the customer or user) with an overview of your design. Anything that will aid the reader in understanding your design can and should be used here. While the "Introduction" section serves to remind the reader of the overall product goals, this section is a more technical discussion of the approach you will use in providing a system that fully satisfies the system requirements.

If you are developing a distributed application that requires you to generate code that runs on more than one computer system, you will need to prepare a structure chart for each piece.

If you are developing an event-driven system the structure chart may have several independent sections with each section organized around an event handler.

If you are using object-oriented design techniques (really doing OO design and not just programming procedurally in an OO language) you should include class diagrams instead of a conventional structure chart.

The discussion presented in Section 2 must refer to this chart but need not specifically refer to every module.

Following the structure chart or other diagramatic representation of your system, include a table that lists the name of each program module and a one sentence description of what each module does.

3.0 FILE AND DATA BASE STRUCTURES

This section contains a detailed description of every file and data base created or used by your system along with information specifying which modules of your system interact with the data. The detailed definition of many pieces of data should already exist in the Data Dictionary. In this section present the considerations that lead to the selection of the data design and describe how the data are used by the software. Diagrams showing the relationship among the major data should be included.

A separate subsection (e.g., 3.1, 3.2) is to be used for each file and/or data base. Files include both permanent and temporary files. In the case of databases it may also be appropriate to subdivide descriptions of the database into subsections based on major data relations or functional relatedness of groups of data items.

The format to be used depends on the language you plan to use for implementation. Each subsection (with the titles removed) should be compilable in the chosen language.

  • File layouts must be provided for each record type showing at a minimum the following for each field of the file:
  • Record types including variant records permitted,
  • Name of the data item,
  • Type of the data item (character, real, etc.),
  • Length of the data item,
  • Number of decimal places in numeric data,
  • Left or right adjustment of the data.
  • In addition, describe in detail the usage of the file, including the following information:
  • File access method (sequential, indexed, etc.),
  • Frequency of use,
  • Expected number of records in the file,
  • Maximum number of records in the file,
  • Directory structure to get to the file. Some of the above information will be covered in your declarations. Any information that is not obvious from the declarations should be included in appropriate comments.

Example File Specification: 3.1 CS Student List /* The CS Student List is a file provided by the Registrar's office. It is made up of a list of records with each CS student at the university having one record of type CSStudentType described below. All fields are left-justified. This file is accessed sequentially. This file is accessed once to generate the UNIX- type account names for all the computer science majors and minors at the university. This file is expected to contain approximately 300 student records. The maximum number of entries is dependent upon the amount of disk space available to the user. The location and name of this file are user-specified. */ typedef struct { char StudentID [STUDENT_ID_LENGTH]; char Blank [BLANK_LENGTH]; char Name [NAME_LENGTH]; char Other [OTHER_LENGTH]; } CSStudentType; #define CSStudentType FILE *

Another requirement in Section 3 is a file/database usage cross-reference matrix. This matrix will indicate which modules of your system access your files, databases, or database tables.

The intention of this section is to provide a single, convenient place to describe the data items and data structures that are used throughout your program. At times data may actually be defined globally but access to it controlled by passing the data as arguments of module parameter lists. When this technique is used (throughout the entire program) the illusion of non-global data is created. If this is the approach you are using, include a paragraph that describes the access restrictions or mechanisms. But it is still likely that describing the data in Section 4 will be required.

This section is similar to a data dictionary, but documents the significant data internal to the program. You may include data declaration statements from the selected implementation language as was done in Section 3. Be sure to include enough narrative in the form of comments that someone reading the document will understand the purpose of the data.

It is important to understand that this section is not necessarily designating the use of global data as a bad practice. Data passed as parameters still have a global nature and can be recognized as important to the overall structure of the program. Just be certain that data is made global for a justifiable reason. An example follows.

Example Global Data Structure Definitions /* The following data types and constants are global. / / These definitions allow for Boolean variables. / typedef int bool; #define TRUE 1 #define FALSE 0 / This structure is used to keep track of the number of accounts currently in the system, those that are new, and the number of students who are no longer majors or minors. / typedef struct { int OldAccounts; int AddedAccounts; int ExpiredAccounts; } StatisticsType; / These errors occur when accessing a file specified by the user. / enum ErrorNumber { NotFound, BadFile, BadCommandOption, Other }; #define STUDENT_ID_LENGTH 8 / Length of UI student ID number / #define BLANK_LENGTH 2 / Length of white-space / #define NAME_LENGTH 32 / Length of student's full name */

#define ACCOUNT_LENGTH 9 /* Max length of account name / #define FILE_NAME_LENGTH 80 / Max length of filenames / typedef char Filename [FILE_NAME_LENGTH]; / Filename string */

Include a Data Cross-Reference Matrix similar to the one shown below.

DATA NAMES

M O D U L E S

In each cell of the cross-reference matrix indicate the type of data usage that each modules exhibits. Use the following code:

Blank No usage of data C Creates I Initializes value(s) D Destroys S Sets value(s) U Uses value(s)

After you have generated the internal data declarations in your code, the information contained in this section will be a duplication. Therefore, you are expected to remove most of Section 4 in the final SDD update. You should retain the data cross reference matrix and include a table containing the name and a brief description of each significant data item or structure in your system. However, detailed definition of these data must be contained in the code.

5.0 MODULE DESCRIPTIONS

This section comprises the major portion of the document; each of the programs and their individual modules identified in the diagram of Section 2 will be fully described here. The description presented must be complete enough so that a knowledgeable

example, simple temporary variables or local index variables don't need to be specified unless they are essential to the understanding of the algorithms presented.

Design Language Description (One mandatory): For the module containing the

most complex algorithms or processing or for the module that represents the greatest

development risk, include this paragraph. The actual module should next be described

using comments. These comments may be retained as in-line comments when the actual code is written. In this subsection the goal is to describe the processing in sufficient detail that a knowledgeable programmer could take it and translate it into the target language with minimal "creative" thinking. The only latitude given the programmer would be in selecting the specific set of statements (maybe 3 to 5 statements in the target language) to implement a specified operation.

If your system contains multiple (independent) programs, organize Section 5 by grouping the modules (subprograms) with the main program they support. If some modules are used in more than one part of the system, that is, they are utility modules, provide their descriptions at the end of Section 5. The general structure of Section 5 then becomes:

PROGRAM 1 DESCRIPTION

MODULE DESCRIPTIONS FOR PROGRAM 1

_

_

_

_

PROGRAM 2 DESCRIPTION

MODULE DESCRIPTIONS FOR PROGRAM 2

_

_

UTILITY MODULE DESCRIPTIONS

_

_

To keep Section 5 from becoming obscured with endless paragraph numberings, begin "program 1 main" with paragraph number 5.1, its supporting modules beginning with 5.2, 5.3 etc., continuing to sequentially number paragraphs at the second digit level until all modules have been identified. As a general rule, start each module description at the top of a new page.

Two examples are given below. The first shows how to document code that you will develop for your system, while the second shows how to document code that will be obtained from an existing source, such as a code library or book. If you will be modifying existing code, indicate where the code is being obtained and what modifications will be made.

Example 1 5.7 CompareAccounts /********************** CompareAccounts *********************/ /* Module Description: This function will compare the accounts in the new CSList with those in the OldCSList. Module Specification: This module must copy the account information into the appropriate file (ConflictAccts, ExpiredAccts, or NewAccts), if the flags (DoConflicts, DoExpired, and DoNewAccts) are set accordingly. It returns the filename of a copy of NewAccts, statistics and an Error flag. This function will be called once. Each of the files will be written sequentially twice: once temporarily for ASAP and once for the user. They will each be read once, also. This is done to enhance the output if the user specifies standard I/O instead of filenames; otherwise, conflicts, expired accounts, and new accounts would be mixed together in a mess. Following is a summary of the possible account list cases: OldCSList (# occurrences of account) 0 1 2


0 | _______ | Expired | Error | | | | | CSList ---------------------------------- (# occurrences 1 | New | * | Error | of account) | Account | | |


2 | Conflict | Conflict | Error | | | | |


  • Same UI student ID# : Ignore (already has account) Different ID# : Conflict

void CompareAccounts /* Interface description: / / INPUT / (char CSListn[], / Name of CSList file / char OldCSListn[], / Name of OldCSList file / char NewAcctsn[], / Name of NewAccts file / char ExpiredAcctsn[], / Name of ExpiredAccts file / char ConflictAcctsn[], / Name of ConflictAccts file / int DoNewAccts, / Flags indicating whether or/ int DoExpired, / not each file should be / int DoConflicts, / generated for the user / / OUTPUT / char TempNewAcctsn[], / Name of temp NewAcctsfile*/

This routine is the Unix utility "sort". For more information, see the Apollo BSD 4.3 Command Reference, or other Unix-command reference. */

6.0 APPENDIX

An appendix should be included whenever supporting material is desired or necessary, but including it in the main body of the document would detract from the reader's ability to comprehend the point being made. Before including something in an appendix however, evaluate whether or not it could be cited in the Applicable Documents section.