Sei sulla pagina 1di 5

Available online at www.sciencedirect.

com

Procedia Engineering 15 (2011) 5445 5449

$GYDQFHGLQ&RQWURO(QJLQHHULQJDQG,QIRUPDWLRQ6FLHQFH

Analysis and Design for Object-oriented Multi-tier


Architecture of Public Opinion Survey System Based on
UML
Xueyun Jia*
a
Mathematics and Computer Department of Baoding University, Baoding 071000, China

Abstract

The author uses UML to model the system for public opinion survey, and propose an object-oriented multi-tier
architecture for public opinion survey system, as well as an idea of parallel engineering which can be used to develop
the information management system.
2011 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of [CEIS2011]
Open access under CC BY-NC-ND license.
Keywords:Object-oriented Multi-tier Architecture;Public Opinion Survey System;Management Information System; Unified
Modeling Language

1. Main text

The public opinion survey system is not only an important part of information development for the
government and enterprises, but also an important basis for administrative or business decisions. It has
become more urgent and necessary in how to use computer networks and database technology to conduct
public opinion survey effectively. People can build the opinion survey system online, or achieve public
opinion data management through networks to improve the efficiency of making decisions. For the
government and enterprises, the difficulty is that they need to collect and manage a wide range of media
types of information, and various management methods are not the same. The traditional way of
development of software system is beginning programming work directly after analysis which is often less
demanded. This software development methodology will easily lead to management processes confusion
and failure of the project in the absence of consideration for overall structure of system and the process of
detailed specification [1].In recent years, in the software system implementation process, more and more
object-oriented analyses and design methods have been used. This approach advocates establishing a clear
object model at the beginning of design system, making people grasp the relationship between the system

* Corresponding author. Tel.: +0-086-0312-7912908.


E-mail address: glee-1218@163.com.

1877-7058 2011 Published by Elsevier Ltd. Open access under CC BY-NC-ND license.
doi:10.1016/j.proeng.2011.08.1010
5446 Xueyun Ji / Procedia Engineering 15 (2011) 5445 5449

picture and the related components as a whole, and reducing the software design flaws [2]. Based on
object-oriented technology, as an open method in the development phase, UML (Unified Modeling
Language) is adopted as industry standards by OMG (Object Management Group), and used in instruction,
visualization, building and writing for a system. It shows a series of best engineering practice, and has
been validated already in the system modeling and system architecture. At present, some scholars have
applied UML to development management information systems. Reference 3 [3] uses UML in the
administration of college information systems; reference 4 [4] discusses the forth putting of UML usecase
diagram, class diagram and sequence diagram in the project information management system; reference 5
uses UML to give reference model of civil relief management information system [5]. To some degree,
with UML application the public opinion survey system will be strengthened. The paper aims to discuss
development process of system, and multi-tier architecture of public opinion survey system, which is
analyzed and designed by UML.

2. Development Process of Public Opinion Survey System

In view of the above mentioned opinion of the system, the development process of public opinion
survey system should be developed in parallel with the feedback process. The traditional development
process has the fixed program with mutual interface, but its prominent drawback is the lack of flexibility,
in particular, it can not solve the problem of inaccurate demand. Moreover, the problem of the following
stage can be solved only by re-confirming of the previous stage [8]. This paper introduces the idea of
parallel engineering into public opinion survey system, continues to evaluate, improve, and enhance all
aspects of the system development. Each link not only is a part of input for the next link, but also has an
effect on previous link. UML is used throughout all stages of analysis and design of the software.
Each of the stages can be designed with the UML, and thus has an effective impact on other stages.
Figure 1 shows the system development process.

Fig. 1. Development Process of Public Opinion Survey System

3. System Analysis of UML-based Public Opinion Survey System

3.1. UseCase Diagram of Public Opinion Survey System

Analyzing for typical usecase is the most common and effective way of quickly and accurately
understanding user requirements and concepts to system developers. It is required that in public opinion
survey system, its main users should be administrators, ordinary users and visitors. Ordinary users create
Xueyun Ji / Procedia Engineering 15 (2011) 5445 5449 5447

survey items through the system, organization and published questionnaires, statistical data;
administrators manage the ordinary users through the system; visitors express their views through voting
and look over statistics of the data through the system.
Usecase diagram for administrator of public opinion survey system is shown in Figure 2.

Fig. 2. Administrator UseCase Diagram

3.2. Class Diagram of Public Opinion Survey System

In object-oriented modeling techniques, classes, objects and their relationship is the most
basic modeling elements. UML class diagram describes the classes and a static
relationship between classes, not only showing the information structure, but also describing the behavior
of the system. Using usecase diagram can abstract out the class within public opinion survey system,
define its meaning and mutual relations, analyze the entity class which is named in that way, and
subsequently, analyze the properties and methods which are contained in entity class. Class diagram for
user of public opinion survey system is shown in Figure 3.

Fig. 3. User Management Class Diagram

3.3. Sequence Diagram of Public Opinion Survey System

Sequence diagram is used to describe the dynamic interactions between objects; its focus is on
message passing between objects, thus reflecting the chronological order. According to the usecase
5448 Xueyun Ji / Procedia Engineering 15 (2011) 5445 5449

diagram of public opinion survey system, from the users point of view, through case-driven thought, the
system sequence diagram can be implemented with the interaction between these classes. Sequence
diagram illustrates the interactions within objects better and helps understand the system. In the
system, each usecase is used to develop a sequence diagram.
Figure 4 shows the sequence diagram of delete general manager.

Fig.4 Sequence Diagram of Delete GeneralManager

3.4. Method to Establish a Database Table Structure

UML can also be used to generate table structure. First, author use UML class diagram and usecase
diagram to build the data dictionary information table, which is used for corresponding table and field
names; then, generate the database tables. Last, transform the entity class directly into data tables. There
are two ways of generating the table, one is making different entity class which inherits the same parent
class merge into one table, and the other is transforming every final entity class into one table.

4. System Design of Public Opinion Survey System

Public opinion survey system uses multi-tier architecture based on object-oriented development model.
The layers are independent relatively and thus the system has greater flexibility, scalability and
maintainability [9].

4.1. Architecture Design.

All levels of system design are shown in figure 5. There are view layer, controller layer, business layer
(Biz) and data access layer (Dao) from top to bottom. Entity class has only properties; the approach seeks
to facilitate parameters transmission and generation of data table. Object which is instanced by entity
class is transferred between the layers. The basic method of database is only existed in Dao class; Biz call
Dao, and controller call Biz, controller receive the data from view layer, and send the data to view layer.
Xueyun Ji / Procedia Engineering 15 (2011) 5445 5449 5449

Fig. 5. Design of Multi-tier Architecture for Public Opinion Survey System

Summary

In this paper, the author proposes an object-oriented multi-tier architecture of public opinion survey
system which is used through UML usecase diagram, class diagram, sequence diagram, and a design
method which is used in generating a database table structure. On the basis of a clear, scalable
architecture, the analysis and design methods of the system have achieved good results.

Acknowledgements

This paper is one of the results in project which is guide scientific and technological research and
development project in Baoding city, project number is 10ZR015, here, it is extremely grateful to every
colleague and schoolmate, they help me to complete the software.

References

[1] Ningsheng Guo, Dongbo Wang, Yangxi Fan. Analysis and Design of Digital Drawing Management Information System
based on UML.Mechanical Science and Technology for Aerospace Engineering; Vol. 28 No 3,2009, p. 404-11
[2] Martin Fowler. UML Distilled, Beijing:Tsinghua University Press ;2005
[3] Limin Zhang, Hongxia Xia. School Administration Management Information System in University Based on Um, Journal of
Wuhan University of Technology; Vol.31 No.12,2009, p. 139-42
[4] Jun Yang.The Design of the Project Information Manage System Based on UML,Computer Knowledge and
Technology;Vol.6 No.23,2010, p. 6397-9
[5] Liang Xiong, Manshan Lin. Analysis and Design of Civil Aid Management Informations System Based on UML, Journal of
Beijing Elrctron in Science and Technology Institute; Vol.18, No.2 ,2010,p. 91-6
[6] Xiaofeng Luo, Wanbo Luo, Yue Hu.A Study on Governance of Net Public Sentiments.Communications
Technolog;No.04,2010, p. 81
[7] Yan Gao:The Introduction for Police Involved Emergencies,Jounrnal of Chinese Peoples Public Security University(Social
Sciences Edition);No.14,2010, p. 47-50
[8] Ming Chen: Software Engineering,Beijing: publishing House of Electronics Industry;2004
[9] Qixiong Dong, Ying Gong and Bo Li:Design of Voting System Based on Three-tier Architecure,Information &
Seience;2010, p. 116

Potrebbero piacerti anche