【Software Engineering】Detailed Design Manual

Detailed design specification
1 Introduction
1.1 Purpose of writing
Describe writing this detailed design specification, and point out the intended audience.
On the basis of the outline design, this document further refines the system structure, shows the software and structure icons, physical design, data structure design, and algorithm design, and introduces in detail how each module of the system is implemented, including the algorithm, logic flow, etc., to prepare for the implementation and testing of the next system!
1.2 Background
Description :
a. Software name: computer room charging system;
b. The task proposer of this project: Professor Mi Xinjiang
c. Developer: Cao Xiangming
d. Users: computer room managers, all teachers and students of Langfang Normal University
e. The computing center or computer network that realizes the software: the school computer room, the annual campus network of Langfang Normal University
f. The basic mutual relationship between the system and other systems or other institutions: Technical support is provided by the Information and Technology Improvement Class of Langfang Teachers College.
1.3 Definitions
List the definitions of specialized terms used in this document and the original phrase
Vb language of foreign acronyms: visual basic is a structured, modular, object-oriented, and assisted language developed by Microsoft. Assist in the development of the environment event-driven for several visual programming languages.
SQL language: Structured Query Language is a database query and programming language used to access data and query, update and manage relational database systems; it is also an extension of database script files. Structured Query Language is a high-level non-procedural programming language.
1.4 References
List relevant reference materials, such as:
a. Feasibility study report, project development plan, software requirements analysis, outline design specification;
b. Detailed design specification (GB8567-88);
c. Software engineering video explanation - Zhang Hongzhi (Harbin Institute of Technology).
2 The structure of the program system
Use a series of diagrams to list the names, identifiers and the hierarchical structure relationship between each program (including each module and subprogram) in the program system.
1. Overall structure diagram

2. Management Hierarchy:

3 General User Design Instructions
Starting from this chapter, design considerations for each program in each level are given one by one. The outline given below is for the general case. For a specific module, especially a lower-level module or subroutine, the content of many entries is often the same as the content of the corresponding entry of the upper-level module to which it belongs. Just one point.
3.1 Program description
Give a brief description of the program, mainly explain the purpose and significance of arranging and designing the program, and also explain the characteristics of the program (such as resident memory or non-resident? Is it a subroutine? Is it reproducible or not? Can't be repeated? Are there any coverage requirements? Is it sequential processing or concurrent processing, etc.).
3.2 Function
Describe the functions that the program should have, which can be in the form of an IPO diagram (ie input-processing-output diagram).
3.3 Performance The consumption amount of the
student 's card number on and off the machine

1. Precision: Precision of
input data: two significant digits after the decimal point Precision of
output data: two significant digits after
the decimal point Precision during transmission: two significant digits after the decimal point
2. Flexibility:
applicable to various Operating system
3. Time characteristics:
login: within 1s,
data processing: within 0.5s,
update: within 0.5s

3.4 Input item 1. Input
item: name
ID, data type, value range, input method, safe and confidential char 10 manual grade grade char 10 manual class class char 10 manual amount cash numeric (10,3) manual comment explain varchar 50 manual username userid char 10 automatic status status char 10 automatic checkout ischeck char 10 automatic date date date automatic time time time 0 automatic user type type char 10 manual














3.5 Output items
Give the characteristics of each output item, including name, identification, data type and format, valid range of data values, output form, quantity and frequency, output media, description of output graphics and symbols, security conditions, etc.
Name ID Data Type Valid Range Security and Confidentiality
Card No. Cardno char 10 Medium
Ontime datetime Accurate
to Offline time offtime Datetime Accurate to seconds
Remarks Remarks In char
10 Consumecash money Accurate to 0.5 yuan
Remaining amount remainingcash money Exact To 0.5 yuan
Name studentname char 10
User ID userid char 10

3.6 Algorithm Describe in
detail the algorithm selected by this program, the specific calculation formula and calculation steps.
Consumption time: time on board minus time off machine
Consumption amount: (rounded up (time on board - time off machine))*fixed cost per unit time
3.7 Process logic
Use diagrams (such as flowcharts, judgment tables, etc.) to supplement the necessary to represent the logic flow of this program.

3.8 Interface
In the form of diagrams, explain the upper-level modules to which this program belongs and the next-level modules and subprograms that belong to this program, explain parameter assignment and calling methods, and explain the data structures (databases, data file).

3.9 Storage allocation
According to the need, describe the storage allocation of this program.
3.10 Annotation Design
Explain the annotations to be arranged in this program, such as:
a. Comments added to the module header;
b. Notes added at each branch point;
c. Comments on the function, scope, default conditions, etc. of each variable;
d. Comments on the logic used, etc.
3.11 Restrictions
Describe the restrictions on the operation of this program.
System: Windows 7 or above
Software : vb6.0 and SQL SERVER database
3.12 test plan
Introduce the plan for the unit test of this program, including the technical requirements for the test, input data, expected results, schedule, personnel responsibilities, equipment conditions Provisions for drivers and stub modules, etc.
1. Test method: use a combination of black-box testing and white-box testing
2. Test case: select important functional modules for testing
3. Use half of the users to log in repeatedly and click the test multiple times to verify the firmness of the system
3.13 Unsolved problems
Describes issues that have not been resolved in the design of this program and that the designer believes should be resolved before the software is completed.
4 Operator design instructions
4.1 Program
description The operator has higher authority than the general user, so it not only has the functions of the general user, but also has the functions of user registration, recharge, charged amount inquiry, amount refund information inquiry, and maintenance of basic student information , students on the machine statistical information query, operator work records and so on.
4.2 Functions
Recharge on and off the machine, consumption amount
Student Information Recharge Amount, Refund Amount
Registered Student Information, Attendance
4.3 Performance
1. Precision: Precision of
input data: two significant digits after the decimal point Precision of
output data: two significant digits after the decimal point Precision
during transmission : Retain two significant digits after the decimal point
2. Flexibility:
Applicable to systems above Windows7 now
3. Time characteristics:
Login: within 1s
Data processing: within 0.5s
Update: within 0.5s
4.4 Input items
1. Input items
Name identification data Type value range Input method is safe and confidential
Card number Cardno char 10 Manual and card swiping Middle
school number studentno char 11 Manual Middle
school Student name studentname char 10 Manual middle
Gender sex char 6 Manual middle
Professional department char 10 Manual middle
Grade class char 10 Manual middle
Class class char 10 Manual
Amount cash numeric (10,3) Manual
Comment explain varchar 50
Manual Username userid char 10 Automatic
Status status char 10 Automatic
Checkout ischeck char 10 Automatically
Date Date Date Automatically
Time Time 0 Automatically
User Type char 10 Manually
4.5 Output Item
Name ID Data Type Length Output Mode Safe and Confidential
Student Number Studentno Char 10 Automatically
Card Cardno Char 10 Automatically
Name Studentname Char 10 Auto Medium
Department Department Char 10 Auto Medium
Gender Sex Char 10 Auto Medium
Grade Grade Char 10 Auto Medium
Class Class Char 10 Auto Medium
Amount Cash numeric (14,3) Auto Medium
Status Ischeck Char 10 Auto Medium
User Type Type Char 10 Automatically
Remark Explain Varchar 50 Automatically
Loaded Time Ontime Date 12
Automatically Loaded Off Time Offtime Date 12 Automatically Loaded
Amount Charge Numeric (10,3)
Automatically Consume Numeric (10,3) Automatically Loaded
Balance Cash Numeric (10,3) automatically in
4.6 algorithm
Recharge amount =
fee amount = original remaining amount - consumption amount
Consumption time: time to get on the computer - time to get off the computer
Fixed user consumption amount: (rounded up (time to get on the computer - time to get off the computer)) / 60*2
Temporary user consumption amount: (rounded up (on-machine time - off-machine time))/60*3
4.7 Process logic

4.8 Interface

4.9 Storage allocation
The database SQL server used by this system has satisfied the functions of storing and reading data.
4.10 Annotation design
A. Annotation in the header of the loading module: mainly used to describe the programming time and writers of the program and basic functions
B. Comments added at each branch point: used to explain the functions of each branch
C. Comments added to the function, scope, default conditions, etc. of each variable: specify the function of the variable, the range of values, etc.
4.11 Restrictions Conditions
System : Windows 7 or above
Software: vb6.0 and SQL server database
4.12 Test plan
1. Test method: a combination of black-box testing and white-box testing
2. Test case: select important functional modules for testing
3 .Use the general user to log in repeatedly and click the test several times to verify the firmness of the system.
4.13 Unsolved Problems
5 Administrator Design Instructions
Starting from this chapter, the design considerations for each program in each level are given one by one. The outline given below is for the general case. For a specific module, especially a lower-level module or subroutine, the content of many entries is often the same as the content of the corresponding entry of the upper-level module to which it belongs. Just one point.
5.1 Program description The
administrator has higher authority than general users and operators. In addition to the functions of general users and operators, it also has functions such as checkout, adding and deleting users, querying teachers who are on duty, querying daily and weekly bills, etc. .
5.2 Functions
User login checkout, add user daily/weekly checkout, user information
data set account amount information statistics
5.3 Performance
1. Precision Precision of
input data: two significant digits after
the decimal point Precision of output data: two significant digits after the decimal point Precision during
transmission : two significant digits after the decimal point
2. Flexibility
Applicable to Windows 7 and above
3. Time characteristics
Login : within 1s
Data processing: within 0.5s
Update
: within 0.5s studentNo Char 11 Manual Student Name studentName Char 10 Manual Gender sex Char 6 Manual Major department Char 10 Manual Grade Char 10 Manual Class class Char 10 Manual Amount cash Numeric (10,3) Manual Comment explain Varchar 50 Manual Username UserID Char 10 Automatic Status Status Char 10 Automatic Checkout Ischeck Char 10 Automatic














Date date Date Automatic
time time Time 0 Automatic
user type char 10 Manual

5.5 Output Item
Name Identification Data Type Length
Output Mode Safe and Confidential Automatic Middle Grade Grade Char 10 Automatically Middle Class Class Char 10 Automatically Middle Amount Cash Numeric (14,3) Automatically Middle Status Ischeck Char 10 Automatically Middle User Type Type Char 10 Automatically Middle Remarks Explain Varchar 50 Automatically Middle Registration Time Logintime Time 20 Automatically Middle Refund time Canceltime Time 20 Automatically loaded Ontime Date 12 Automatically loaded Off -machine time Offtime Charge Numeric (10,3) Automatically consumed Consume Numeric (10,3) Automatically Balanced Cash Numeric ( 10,3) Automatic 5.6 algorithm Recharge amount = amount at the time of registration + recharge amount



















Consumption time: time spent on the machine minus the time taken off the machine
Fixed user consumption amount: (rounded up (time on board - time off machine))/60*2
consumption amount for temporary users = (rounded up (time on board - time off machine) )/60*3
Receivable amount = recharge amount - refund amount
5.7 Process logic

5.8 Interface

5.9 Storage allocation
5.10 Comment design
A. Comments added to the module header: mainly used to explain the programming time and writers of the program and basic functions
B. Comments added at each branch point: used to explain the functions of each branch
C. Comments added to the function, scope, default conditions, etc. of each variable: specify the function of the variable, the range of values, etc.
5.11 Restrictions
System : Windows 7 or above
Software: vb6.0 and SQLserver database
5.12 test Plan
1. Test method: a combination of black-box testing and white-box testing
2. Test case: Select important functional modules for testing
3. Repeated login with ordinary users, multiple click tests to verify the firmness of the system
5.13 Not yet Problems
solved No

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325764700&siteId=291194637