The final version of the detailed design

Third, the detailed design section

  1. introduction

1.1 write Objective

This part of the purpose of illustrating the preparation of the detailed description of the design, named target audience.

This document describes the details of each module design, including interface module, calling relationships, processes, and algorithms, and module testing programs. The main audience for this document as software testers, module developers, managers, testers.

1.2 Background

This section includes the source and the competent departments of the project.

The project proposed by Huazhong Agricultural University Software Engineering Study Group, Huazhong Agricultural University Information 2017 completed level computer science and technology students.

1.3 Definitions

This section lists the definitions of specific terms and acronyms as used in this document.

This system is simply a small regimen recommended procedures, end users can use the network and is willing to understand the functional groups of fruits and vegetables, there is no limit on the level of education and technical expertise, user-friendly strong, no term analysis.

1.4 References

[1] The detailed design specification [S] .GB 856D-1988.

[2] Douwan Feng . Software Engineering Method and Practice [M]. Beijing: Mechanical Industry Press, 2018.

1.5 Version Information

Version information as specific chart 1 shown in FIG.

 

Chart 1     specific version information

 

  1. The overall design

Requirements and software architecture of the system is given in the summary part to track the requirements and design.

2.1 Requirements Overview (definitions and descriptions)

Fruits and vegetables diners system requirements definition is as follows:

2.1.1 Login Register subsystem

The module is used for user / ; administrator registration, login, password recovery, and tourists login Register / login / password recovery mode and administrator Register / Login / Register Retrieve Password differently, reflected in the administrator's Log in and there will be stricter limits and verification, administrators have the right landing permission to change the registration, cancellation of a user account; visitors access is restricted to public access to the database, only search, preview, but can not download resources and reviews .

 

2.1.2 User Subsystem

Views: visit the website for information

Comments: to comment on favorite dishes

Search: quick search, go to the relevant pages

Collection: The collection into a menu favorites

 

  1. Program Description

3. 1 Module's information

This section a detailed design for each module.

3.1.1 Login Register subsystem

The portion uml class diagram as follows

 

FIG Class 1

 

 

Register Login refined class diagram 1

 

     

Class model _ account 1 class model _ Registration

  

Class model _ Login class model _ connection

 Relations between classes:

 

User - Account

 

Account - Register

 

Register - Login

 

Cancellation, change - Login

 

Account Type: Account - derived - tourists, ordinary users, administrators

 

Class model _ Administrator

Program Description : Tourists after the first visit the website, click on the registration button to register, if a user name and password to meet the requirements, it will save the user name and password to the database. Need to re-enter the account password to login again, if the contents of the database and the match is successful, you can log in.

accuracy:

The accuracy of the input data : Data String

The accuracy of the output data: no output

Flexibility:
suitable for all kinds of operating systems now
time characteristics:
Login: 1S within
data processing: 0.5s within
Update: 0.5s or less

Algorithm: The Java program written, you first need to reference Java package sql and util package. Second, the Java program with a database connected; algorithm registration function is: enter a user name and password is first database table id to compare ( U TIL package method for comparison), if no comparison is successful, you can register that registration is successful; algorithm landing function is to enter a user name and password, and database user name and password for comparison, the success ratio can be successfully landed.

As shown below:

 

Login sequence diagram 1

 

 

Login Register deployment diagram 1

 

3.1.2 User subsystem - browsing module

The portion uml class diagram as follows

 

View Class Diagram 1

 

Browse refinement FIG class 1

 

FIG refined ingredients Class 1

 

Class model _ ingredients class model _ recipes

 

Class model _ topic class model _ food menu

 

Column - recipes - ingredients relationship

accuracy:

Data input accuracy : no precision, clicking and browsing operations.

The accuracy of the output data: no output

Flexibility:
suitable for all kinds of operating systems now
time characteristics:
Login: 1S within
data processing: 0.5s within
Update: 0.5s or less

Algorithm: complete corresponding function browsing and jump through the click. No more complex algorithm, just in html writes some statements can jump inside.

 

 

3.1.3 User subsystem - Search Module

Each part classification is as follows:

 

Search class diagram 1

 

FIG refined search module Class 1

 

Class model

 

accuracy:

Accuracy of input data : string

Accuracy transmission strings: the accuracy of the output data

Flexibility:
suitable for all kinds of operating systems now
time characteristics:
Data processing: 0.5s within
Update: 0.5s or less

algorithm:

 

FIG search order 1

 

3.1.4 User subsystem - Comments (Chat) module

FIG portions of refinement categories as follows:

 

Comments like Figure 1

     

Class model

FIG class refinement Reviews 1

 

accuracy:

Accuracy of the input data : string or file.

The accuracy of the output data: string or file transfer.

Flexibility:
suitable for all kinds of operating systems now
time characteristics:
Login: 1S within
data processing: 0.5s within
Update: 0.5s or less

algorithm:

Client and server establish a connection, the client through Socket creating a stream socket and connect to the specified port number on the specified host class constructor. Server through ServerSocket constructor for class instantiation ServerSocket object and ServerSocket object calls the accept () The server listens for requests connection method specified port number of the client terminal, and receiving the returned server requests the client socket stream that Socket object so that the server and client to establish a successful connection. Create a loop listening mode, listening to a client once, and creates a thread. By traversing the server HashMap object key value, and when found userName equal to the key value using get () method to obtain userName corresponding to the client's needs whisper Socket objects, thereby obtaining private chat client output stream and whisper information output. But to the customer experience, whisper the client needs to know which user to operate their own private chat, it can be traversed HashMap object value value to get the current client user name to whisper client. When the information group chat, the server recognizes the need for the group chat client operation, by traversing the serverHashMap target value the value of the acquired client Socket object is to take advantage Socket target acquisition output stream chat group will send a message to each client.  The reaction whisper with the same client. When sending messages, the server receives the file transfer operation is required of the client, the server receives corresponding forward by reading the file, and spread.

 

Chat _ timing chart 1

 

Comments (chat) deployment diagram 1

3.3 program logic

 

3.4 Interface

End user management and client review interface.

3.5 Test Points

3.5.1 Login Register subsystem

The main test the following situations:

(1). The user accounts overlap.

(2) where the user account does not exist.

(3). Administrator true identity is incorrect.

(4). Administrator mailbox does not exist, the situation of failure.

(5) test administrator privileges

 

3.5.2 User Subsystem

The main test following points

Duplication of nicknames ;

When searching for fuzzy search accuracy;

 

Guess you like

Origin www.cnblogs.com/yuming1/p/11074474.html