文档介绍:华中科技大学
硕士学位论文
OSGi框架下UPS监控系统的设计与实现
姓名:蔡亮
申请学位级别:硕士
专业:软件工程
指导教师:邱德红
20090505
华中科技大学硕士学位论文
摘要
如今,随着软件功能的不断增强,软件复杂度也以惊人的速度在增加。这导致
软件开发成本越来越高。而 OSGi(开放服务网关协议)规范的适应性能够降低软件
的开发成本。并且,OSGi 服务平台是一个动态的平台。运行中的 OSGi 框架可以在
需要的时候安装、启动、更新、停止以及卸载应用程序组件。组件因为可以动态发
布到系统上,所以也可以降低维护成本。因此在 OSGi 框架下开发软件有着十分重要
的意义。
在 OSGi 框架下利用面向服务的模块化编程方法,设计实现了 UPS 监控系统。
首先根据项目要求分析系统的功能需求,然后利用面向服务的架构设计方法来进行
系统的总体架构设计。总体架构实现松耦合的系统结构,以利用 OSGi 框架的动态性。
根据总体架构设计,划分出系统的各个功能模块,使系统模块化。为了充分利用 OSGi
框架面向服务的特点以及 OSGi 框架本身拥有的服务,将模块分成 OSGi 框架定义的
标准单元模块和普通的库模块两种。接着结合面向对象的技术分别对各个模块编程,
并给划分成 OSGi 框架标准单元的模块配置描述文件,并在其初始化时注册服务或调
用已注册的服务。最后将编译好的代码拷入嵌入式设备,集成各个独立开发的模块
来实现 UPS 监控功能。
通过这个 UPS 监控系统的设计与实现,充分体现了在 OSGi 框架下运用结合面
向服务架构和面向对象技术的方法,易于实现系统的松耦合模块化,给予系统动态
性、面向服务、易于扩展的特点。方便了系统的开发和维护,降低了成本。
关键词: 开放服务网关协议模块化动态性面向服务
II
华中科技大学硕士学位论文
Abstract
With the requirements for increased functionality of software, plexity is
also increasing quickly. This has led to increasingly high cost of software development.
However the OSGi (Open Systems Development initiative) specification’s adaptability
can reduce the cost of software development. In the operation of the OSGi framework,
ponents can be installed, started, updated, stopped and uninstalled when
needed. Because ponents can be dynamically published to the system, costs of
software maintenance can also be reduced. So it is very important to develop software in
OSGi framework.
This UPS (Uninterruptible Power Supply) monitoring system has been designed and
implemented by using modular service-oriented programming in OSGi framework. First,
the functional requirements of the system are analyzed in accordance with project's
requirements from customers, and then the overall system architecture is designed by
using service-oriented architecture. Loose coupling architecture is implemented by using
this overall system architecture in order to take advantage of the dynamic nature of OSGi
framework. The system is divided