Model-View-Controller MVC模式

原创 2015年07月08日 11:02:54

A compound pattern combines two or more patterns into a solution that solves a recurring or general problem.

  1. View根据用户的操作调用对应的Controller的方法。
  2. Controller从Model获得当前状态的信息,并修改Model的状态。
  3. Model状态修改后通知View,View修改显示信息。
A Pattern is a solution to a problem in a context.
The context is the situation in which the pattern applies. This should be a recurring situation.
The problem refers to the goal you are trying to achieve in this context, but it also refers to any constraints that occur in the context.
The solution is what you re after: a general design that anyone can apply which resolves the goal and set of constraints.

Creational Patterns:
  1. Singleton
  2. Builder
  3. Abstract Factory
  4. Factory Method
  5. Prototype

Behavioral Patterns:
  1. Template Method
  2. Command
  3. Observer
  4. Strategy
  5. State
  6. Iterator
  7. Visitor
  8. Mediator
  9. Memento
  10. Interpreter
  11. Chain of Responsibility

Structural Patterns:
  1. Proxy
  2. Decorator
  3. Composite
  4. Facade
  5. Adapter
  6. Flyweight
  7. Bridge
In GoF classic Design Patterns, there 23 patterns.

http://c2.com/cgi/wiki?CategoryPattern

http://hillside.net/patterns/education

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

iOS设计模式——MVC(Model-View-Controller)

转载:http://blog.csdn.net/lovefqing/article/details/8270123 Modol View Controller(MVC)是一种最早的也是最成功的可...

iOS设计模式——MVC(Model-View-Controller)

Modol View Controller(MVC)是一种最早的也是最成功的可重用的设计模式,70年代的时候首次在smaltalk编写的程序中成功使用。基于MVC设计模式,Cocoa整体架构可以划分为...

Model View Controller(MVC) in PHP

The model view controller pattern is the most used pattern for today’s world web applications. It ha...

MVC(Model-View-Controller)

Modol View Controller(MVC)是一种最早的也是最成功的可重用的设计模式,70年代的时候首次在smaltalk编写的程序中成功使用。基于MVC设计模式,Cocoa整体架构可以划分为...

Spring MVC Fast Tutorial: Model View Controller

This tutorial is out of date. See the new version for Spring 4. What are we going to build? ...

ASP.NET MVC(模型(Model),视图(View)和控制Controller)实践:实现身份验证权限管理

仅使用 ASP.NET 的窗体身份验证,不会使用它的 成员资格(Membership) 和 角色管理 (RoleManager),原因有二:一是不灵活,二是和 MVC 关系不太。   一、示例项目 ...

MVC学习1-实现Model—Controller—View分离

有人会问:为什么要实现分离?小项目就不需要进行分离,但是大项目最好还是分离的好,层次更鲜明,看着比较舒服。 结构如下 首要要先建立一个MvcApplication项目,然后新建项添加yang....
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)