17
学校编码:10384 分类号 密级 学号:X2012230082 UDC 智能建筑综合管理平台的设计与实现 Design and Implementation of Integrated Management Platform for Intelligent Building 指 导 教 师: 张海英副教授 专 业 名 称: 论文提交日期: 2014 年 4 月 论文答辩日期: 2014 年 5 月 学位授予日期: 答辩委员会主席: 2014 4 厦门大学博硕士论文摘要库

Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

学校编码:10384 分类号 密级

学号:X2012230082 UDC

工 程 硕 士 学 位 论 文

智能建筑综合管理平台的设计与实现

Design and Implementation of Integrated Management

Platform for Intelligent Building

黄 莹

指 导 教 师: 张海英副教 授

专 业 名 称: 软 件 工 程

论文提交日期: 2014 年 4 月

论文答辩日期: 2014 年 5 月

学位授予日期: 年 月

指 导 教 师:

答辩委员会主席:

2014 年 4 月

厦门大学博硕士论文摘要库

Page 2: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

厦门大学学位论文原创性声明

本人呈交的学位论文是本人在导师指导下,独立完成的研究成

果。本人在论文写作中参考其他个人或集体已经发表的研究成果,

均在文中以适当方式明确标明,并符合法律规范和《厦门大学研究

生学术活动规范(试行)》。

另外,该学位论文为( )课题

(组)的研究成果,获得( )课题(组)经费或实

验室的资助,在( )实验室完成。(请在以上括号

内填写课题或课题组负责人或实验室名称,未有此项声明内容的,

可以不作特别声明。)

声明人(签名):

年 月 日

厦门大学博硕士论文摘要库

Page 3: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

厦门大学学位论文著作权使用声明

本人同意厦门大学根据《中华人民共和国学位条例暂行实施办

法》等规定保留和使用此学位论文,并向主管部门或其指定机构送

交学位论文(包括纸质版和电子版),允许学位论文进入厦门大学

图书馆及其数据库被查阅、借阅。本人同意厦门大学将学位论文加

入全国博士、硕士学位论文共建单位数据库进行检索,将学位论文

的标题和摘要汇编出版,采用影印、缩印或者其它方式合理复制学

位论文。

本学位论文属于:

( )1.经厦门大学保密委员会审查核定的保密学位论文,

于 年 月 日解密,解密后适用上述授权。

( √ )2.不保密,适用上述授权。

(请在以上相应括号内打“√”或填上相应内容。保密学位论文应

是已经厦门大学保密委员会审定过的学位论文,未经厦门大学保密

委员会审定的学位论文均为公开学位论文。此声明栏不填写的,默

认为公开学位论文,均适用上述授权。)

声明人(签名):

年 月 日

厦门大学博硕士论文摘要库

Page 4: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

厦门大学博硕士论文摘要库

Page 5: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

摘 要

I

摘 要

随着社会的发展,建筑物内的智能设备不断增加,供电、排给水、空调、

新风等设备都带上了智能控制模块,同时楼宇内使用的软件系统也在不断增加,

如安防系统、消防系统、办公系统等。众多的软硬件系统各自为政,形成分离

的信息孤岛。作为建筑的管理者,更希望有一个能够将所有的设备和系统汇聚

在一起的中心系统,这个中心系统能够协调其他系统,从而使楼宇的信息化效

率得到综合提高,由此需要开发智能建筑管理系统,从而实现建筑管理的一体

化和智能化。

本论文所设计的智能建筑综合管理平台,其核心功能就是连接其他子系统

或设备的中心系统,提供全面的接入功能和联动功能,最终目的就是在此基础

上给用户提供更加完善的建筑管理功能。为了实现这些核心功能,设计并开发

了两个核心功能平台,一个是采集平台,一个是业务平台,并在业务平台的基

础上实现了系统联动的功能,通过本系统的设计,能够达到方便集成硬件设备

和其他系统,以及灵活协调各个接入到本系统的对象进行有效运作的效果。

在技术路线上,采用 Spring 框架作为系统开发软件框架,采用 Mule Esb 作

为采集层实现的核心技术,通过组态的方式来完成对应的设备或第三方系统集

成。整个业务平台需要实现一个插件平台,这个插件采用 Atlassian Plugin

Framework(后面简称 APF)作为核心技术,采用 Spring DM 来实现 Spring 和

OSGi 的结合。联动平台的设计主要是采用 Groovy 脚本语言作为联动的脚本语

言来实现联动的所有逻辑。

本课题所设计的智能建筑综合管理平台,目前已经推出了第一个测试版本,

在这个测试版本中,实现了系统集成和系统联动的基础功能,并可以为用户提

供简单的建筑管理功能,下一步将逐步引入更多的第三方系统或硬件设备进行

集成和联动测试,以进一步完善系统。

关键词:智能建筑;综合管理平台;Spring 框架;

厦门大学博硕士论文摘要库

Page 6: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

厦门大学博硕士论文摘要库

Page 7: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

Abstract

III

Abstract

With the development of the society,The intelligent devices in the building is

continually increased. The power supply, water supply, air conditioning, fresh air

equipment are carrying the intelligent control module now, At the same time the

software system used in building is also increasing, Such as security systems, fire

systems, office systems, etc. So more and more independent software and hardware

system, form the information isolated island and separated with each other. As a

building manager, is hope to have a center system to keep all equipment and systems

together. The center system is able to coordinate other systems ,so that the building

information can be improved, In order to realize it, It need to develop intelligent

building management system, so as to realize the integrated and intelligent system

for building management.

The intelligent building integrated management platform which is designed by

this thesis, Its core function is to connect other subsystem or equipment, to provide

comprehensive access function and joint function. In order to realize the core

functions, this thesis design and development two core function platforms, one is the

collection platform, one is a business platform, and implement a joint function on

the base of plug-in platform, the final goal is to provide users with more perfect

construction management functions. Through the design of this system, it can

achieve to integrate hardware devices and other systems conveniently, and it also

can coordinate with each object which access to this system for the effective

operation.

On the technical route, the entire Web application using the Spring framework

as a software framework for system development. It USES a Mule Esb as the core

technology of collecting platform, the entire business platform needs to implement a

plug-in platform, This Plug-in USES Atlassian Plug-in Framework behind (APF) as

the core technology, using Spring DM to realize the combination of Spring and

OSGi, any plug-in into Spring DM can identify the structure in advance. Joint action

platform is designed using Groovy scripting language as joint action of script

厦门大学博硕士论文摘要库

Page 8: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

Abstract

IV

language to realize the joint action of all logic.

The intelligent building integrated management platform which designed by

this thesis, has now launched the first test version, In this version, It has realized two

basic function, one is system integration, and the other is system joint action, base

on this two function, It can provide users with simple construction management

functions, The next step is to gradually introduce more of a third party to test the

integration and joint action with the third system or hardware device, so it can

further improve the system.

Key words: Intelligent Building; Integrated Management Platform;Spring

Framework;

厦门大学博硕士论文摘要库

Page 9: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

目录

V

目 录

第一章 绪论 ............................................................................................ 1

1.1 研究背景与意义 .............................................. 1

1.2 国内外研究现状 .............................................. 2

1.2.1 国内研究的现状............................................ 2

1.2.2 国外研究的现状............................................ 3

1.3 存在问题 .................................................... 4

1.4 研究内容与目标 .............................................. 5

1.4.1 研究内容.................................................. 5

1.4.2 研究目标.................................................. 6

1.5 论文章节安排 ................................................ 6

第二章 系统相关技术介绍 ...................................................................... 8

2.1 技术路线介绍 ................................................. 8

2.2 Mule Esb 介绍 ................................................ 8

2.3 Spring 框架介绍 .............................................. 9

2.4 OSGi 及插件体系介绍 ......................................... 11

2.5 Atlassian plug-in framework 插件平台介绍 .................... 11

2.6 MongoDB NoSql 数据库介绍 .................................... 13

2.7 PostgreSQL 数据库介绍 ....................................... 14

2.8 Groovy 介绍 ................................................. 14

2.9 Velocity 模板技术介绍 ....................................... 15

2.10 Servlet 介绍 ............................................... 16

2.11 本章小结 ................................................... 16

第三章 系统需求分析 ............................................................................ 17

3.1 业务需求分析 ................................................ 17

3.1.1 系统集成需求分析......................................... 17

3.1.2 建筑管理需求分析......................................... 19

厦门大学博硕士论文摘要库

Page 10: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

目录

VI

3.1.3 系统联动需求分析......................................... 20

3.2 功能需求分析 ................................................ 21

3.2.1 系统管理员功能需求....................................... 21

3.2.2 用户功能需求............................................. 21

3.2.3 工程人员功能需求......................................... 22

3.3 系统非功能性需求 ............................................ 23

3.4 本章小结 .................................................... 25

第四章 系统设计 .................................................................................... 26

4.1 系统的总体设计 .............................................. 26

4.1.1 系统逻辑架构............................................. 26

4.1.2 系统技术架构............................................. 27

4.1.3 系统网络拓扑结构......................................... 29

4.1.4 系统功能结构............................................. 30

4.2 系统功能平台设计 ............................................ 30

4.2.1 采集平台................................................. 30

4.2.2 业务平台................................................. 32

4.3 系统功能模块设计 ............................................ 39

4.3.1 系统集成................................................. 39

4.3.2 建筑管理................................................. 40

4.3.3 系统联动................................................. 41

4.4 数据库设计 .................................................. 43

4.5 本章小结 .................................................... 48

第五章 系统实现与测试 ........................................................................ 49

5.1 系统开发环境 ................................................ 49

5.2 系统功能平台的实现 .......................................... 50

5.2.1 采集平台................................................. 50

5.2.2 业务平台................................................. 51

5.3 系统关键功能模块的实现 ...................................... 53

厦门大学博硕士论文摘要库

Page 11: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

目录

VII

5.3.1 主界面框架实现........................................... 53

5.3.2 系统集成................................................. 56

5.3.3 建筑管理................................................. 60

5.3.4 系统联动................................................. 62

5.4 系统测试 .................................................... 69

5.4.1 测试环境................................................. 69

5.4.2 测试方法................................................. 70

5.4.3 测试用例................................................. 71

5.4.4 测试结果与分析........................................... 72

5.5 本章小结 .................................................... 74

第六章 总结与展望 .............................................................................. 75

6.1 总结 ........................................................ 75

6.2 展望 ........................................................ 75

参考文献 ................................................................................................... 77

致 谢 ....................................................................................................... 79

厦门大学博硕士论文摘要库

Page 12: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

厦门大学博硕士论文摘要库

Page 13: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

contents

IX

Contents

Chapter 1 Introduction ....................................................................... 1

1.1 Research Background and Significance ............................................................ 1

1.2 The research status at home and abroad ............................................................ 2

1.2.1 The research status at home .......................................................................... 2

1.2.2 The research status at abroad ........................................................................ 3

1.3 The existing problems .......................................................................................... 4

1.4 Dissertation Content and Target ........................................................................ 5

1.4.1 Dissertation Content ..................................................................................... 5

1.4.2 Dissertation Target ........................................................................................ 6

1.5 Dissertation Organizational Structure ............................................................... 6

Chapter 2 Introduction of system related technology ........................ 8

2.1 Technology route overview ............................................................................... 8

2.2 Mule Esb overview ............................................................................................ 8

2.3 Spring overview ................................................................................................ 9

2.4 OSGi and plug-in system overview ................................................................ 11

2.5 Atlassian plug-in framework system overview ............................................... 11

2.6 MongoDB NoSql DataBase overview ............................................................ 13

2.7 PostgreSQL DataBase overview ..................................................................... 14

2.8 Groovy overview ............................................................................................ 14

2.9 Velocity overview ........................................................................................... 15

2.10 Servlet overview ............................................................................................ 16

2.11 Summary ....................................................................................................... 16

Chapter 3 System Requirements Analysis ........................................ 17

3.1 Business Process analysis ................................................................................ 17

3.1.1 The analysis of system integration requirements ........................................ 17

3.1.2 The analysis of building management requirements .................................. 19

厦门大学博硕士论文摘要库

Page 14: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

contents

X

3.1.3 The analysis of system joint requirements .................................................. 20

3.2 The functional requirements analysis .............................................................. 21

3.2.1 The function requirement of administrator ................................................. 21

3.2.2 The function requirement of client ............................................................. 21

3.2.3 The function requirement of Engineering personnel .................................. 22

3.3 System non-Functional Requirements............................................................. 23

3.4 Summary ......................................................................................................... 25

Chapter 4 System Design .................................................................... 26

4.1 System overall design ...................................................................................... 26

4.1.1 System logical architecture design .............................................................. 27

4.1.2 System technology architecture design ....................................................... 29

4.1.3 System network topology architecture ........................................................ 30

4.1.4 System functional architecture .................................................................... 30

4.2 System functional paltform design .................................................................. 30

4.2.1 Collection platform ..................................................................................... 30

4.2.2 Business platform........................................................................................ 32

4.3 System functional module design.................................................................... 39

4.3.1 System intergration ..................................................................................... 39

4.3.2 Buidling management ................................................................................. 40

4.3.3 System joint ................................................................................................ 41

4.4 Database design ............................................................................................... 43

4.5 Summary ......................................................................................................... 48

Chapter 5 System implementation and testing ................................. 49

5.1 System Implementation Environment ............................................................. 49

5.2 The implementation of functional paltform .................................................... 50

5.2.1 Collection platform ..................................................................................... 50

5.2.2 Business platform........................................................................................ 51

5.3 The implementation of system critical function ............................................. 53

厦门大学博硕士论文摘要库

Page 15: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

contents

XI

5.3.1 Main interface framework implementations ............................................... 56

5.3.2 System collection ........................................................................................ 60

5.3.3 Building management ................................................................................. 62

5.3.4 System joint action ...................................................................................... 69

5.4 System test ....................................................................................................... 69

5.4.1 Testing environment ................................................................................... 70

5.4.2 Testing method............................................................................................ 71

5.4.3 Testing example .......................................................................................... 72

5.4.4 Testing result and analysis .......................................................................... 74

5.5 Summary ......................................................................................................... 75

Chapter 6 Conclusions and prospect ................................................. 75

6.1 Conclusions ..................................................................................................... 75

6.2 Prospect ........................................................................................................... 75

References ................................................................................................ 77

Acknowledgements ................................................................................. 79

厦门大学博硕士论文摘要库

Page 16: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

厦门大学博硕士论文摘要库

Page 17: Design and Implementation of Integrated Management Platform … · 2016-07-05 · Abstract IV language to realize the joint action of all logic. The intelligent building integrated

Degree papers are in the “Xiamen University Electronic Theses and Dissertations Database”. Fulltexts are available in the following ways: 1. If your library is a CALIS member libraries, please log on http://etd.calis.edu.cn/ and submitrequests online, or consult the interlibrary loan department in your library. 2. For users of non-CALIS member libraries, please mail to [email protected] for delivery details.

厦门大学博硕士论文摘要库