• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2010, Vol. 32 ›› Issue (11): 141-144.doi: 10.3969/j.issn.1007130X.2010.

• 论文 • 上一篇    下一篇

手机应用程序开发架构的研究

黄金国,罗震   

  1. (华中科技大学信息与系统技术研究所,湖北 武汉 430074)
  • 收稿日期:2008-12-15 修回日期:2009-03-20 出版日期:2010-11-25 发布日期:2010-11-25
  • 通讯作者: 黄金国
  • 作者简介:黄金国(1965 ),男,湖北仙桃人,博士,副教授,研究方向为软件工程和软件体系结构;罗震,硕士生,研究方向为软件工程。

Research on the Architecture of Mobile Application Development

HUANG Jinguo,LUO Zhen   

  1. (Institute of Information and System Technology,Huazhong University of Science and Technology,Wuhan 430074,China)
  • Received:2008-12-15 Revised:2009-03-20 Online:2010-11-25 Published:2010-11-25

摘要: 为了提高手机软件开发的质量和效率,本文提出了在底层平台与上层应用之间设计一个中间架构层,建立一个较为稳定的软件开发框架的思想。本文首先对软件架构理论进行了分析,在对架构设计的条理性原则和可靠性原则进行了充分权衡之后,将该架构分为四层,从上到下依次是:应用层、安全层、业务层和适配层,各层相对独立。应用层负责手机应用的初始化、关闭以及相关控件的工作;安全层负责保护数据,防止病毒木马等恶意攻击;业务层负责包装各类手机应用业务,并向上提供相关服务给应用层调用;适配层则负责与协议栈的数据交互。本文应用这个架构,在Android平台上开发出GTalk即时聊天软件,证实了该架构的可应用性。

关键词: 软件架构, 分层模式, 消息映射, 业务代理对象

Abstract: In order to improve the development quality and efficiency of software on smart phones, this thesis proposes a way to design a middle architecture between the upper application and the lower platform so as to form a comparatively stable framework of software development. This article first makes an analysis of the software architecture theories, then makes a serious consideration on the principle of coherence and reliability, based on which we divide the whole architecture into four layers, which are the application layer, the security layer, the business layer and the adaptive layer in the order that from up to down, which are respectively independent on other layers. The application layer is responsible for the initialization, close of application and the task of the related controllers. The security layer is responsible for protecting data so as to keep viruses and Trojanes from attacking the system. The business layer is responsible for the packaging of various application businesses, and provides services for the application layer. The adaptive layer is responsible for the data interaction with the protocol stack.Applying the architecture, an instant messaging software named GTalk is developed, and the applicability of the framework is confirmed.

Key words: software architecture;layered mode;messagemapping;businessbroker object