华中科技大学
硕士学位论文
基于MVC的分层控制设计模型及其应用研究
姓名:许明辉
申请学位级别:硕士
专业:软件工程
指导教师:陈传波
20060429
华中科技大学硕士学位论文
摘要
随着 的出现和飞速发展,信息技术发生了翻天覆地的变化。Web 应用的
范围也在不断地扩展。对 Web 应用框架支持多类型用户界面、可扩展性、易维护性
也提出了越来越高的要求。现有的 Web 应用技术尽管有很多优点,但还无法满足这
些要求。
MVC 是 Model-View-Controller 的简称,是把一个应用分为模型(Model)、视
图(View)和控制器(Controller)的设计思想。模型代表的是应用的业务逻辑,视图
代表应用与用户的交互界面,控制器提供应用的处理过程控制。随着网络应用的快速
增加,使用 MVC 设计模式设计开发 Web 应用软件的优势也慢慢地呈现出来。但是,
采用 MVC 设计模式实现多类型用户界面系统时,控制层存在逻辑庞杂、结构不清、
复用性低、不易维护等缺陷。
分层控制设计模型在 MVC 设计模式的基础上发展而来。它将 MVC 设计模式的
控制层分割成视图控制层和模型控制层。视图控制层用于处理用户在界面上的输入,
并选择相应的视图响应。模型控制层用于选择调用模型,判断模型状态是否发生变化。
分层控制设计模型具有系统功能划分清晰,系统能够灵活配置,可维护性和可扩展性
强,易于开发,可支持多类型用户界面等优点。
以“台北升华团险系统”为实例,验证了分层控制设计模型对多类型用户界面的
支持。首先、对系统进行了需求分析和功能模块的划分;然后采用分层控制设计模型
实现了系统架构设计和接口设计;最后介绍了系统的接口、视图层、视图控制层、模
型控制层和模型层的具体实现。
关键字:MVC 设计模式控制器视图模型
I
华中科技大学硕士学位论文
Abstract
With the development and the popularization of at a very fast speed, IT has
undergone enormous changes, web application presents multi-purpose tendency. That puts
forward highly demand of the support of multi-view user interface,the expandability and
easy maintenance of web application framework. The existing Web application technology
has many advantages, but it is also unable to satisfy those requests.
MVC is the abbreviation of "Model-View-Controller". It is the design thought that
divides an application into model layer, view layer and controller layer. The model
represents application's logic. The view represents user interface. The controller provides
application for the process control. With work application at a fast speed, the
advantage that uses the MVC to develop the Web application software, is more and more
apparently. But, using MVC for multi-view user interface system, the control layer is
complex, unclear structure, low reusability, uneasily maintenance.
Layer-Control Design Mode is based on MVC. It divides the controller Layer of MVC
into view-controller layer and model-controller layer.
基于MVC的分层控制设计模型及其应用研究 来自淘豆网www.taodocs.com转载请标明出处.