摘要
模型-视图-控制(MVC)是一种交互界面的结构组织模型,把交互系统的组成分解成模型、视图、控制三种相互独立的部件,改变其中任何一个都不会影响其它两个.首先采用Factory模式给出了MVC的体系结构框架,然后通过一个网络程序实例,讨论了MVC体系结构的设计与实现过程.根据这种设计思想能构造良好的松耦合的构件,使应用程序的构架更健壮,更具扩展性.
Model-View-Controller (MVC) is an architecture organization model of user interface, it divides interaction system into model, view and controller, and changes of one of the three parts cannot affect other parts. This paper first gives the architecture framework of MVC by using Factory pattern, and discusses the process of deign and implementation of MVC architecture through an example of network program, Ordering by this design ideal developers can build good and loose-couple components, and make the architecture of application programs more haleness and be extended more easily.
出处
《微计算机信息》
北大核心
2006年第08S期248-249,196,共3页
Control & Automation
基金
湖南省自然科学基金资助项目(03JJY6022)
关键词
模型
视图
控制器
体系结构
设计模式
model, view, controller, architecture, design pattern