• русский (Россия)
    • English (United States)
    • العربية (مصر)
    • Deutsch (Deutschland)
    • Español (España, alfabetización internacional)
    • français (France)
    • हिंदी (भारत)
    • italiano (Italia)
    • 日本語 (日本)
    • 한국어 (대한민국)
    • Nederlands (Nederland)
    • polski (Polska)
    • ไทย (ไทย)
    • Türkçe (Türkiye)
    • Tiếng Việt (Việt Nam)
    • 中文(中华人民共和国)
    • 中文(香港特別行政區)
  • Вход
  • Зарегистрироваться
DotNetAge - Mvc & jQuery CMS

Behavioral Patterns

  • rss
  • atom

Template Method

avatar
Ray

Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.


  • 17.06.2011 5:30:59
  • Votes (0)
  • Читает
    (1901)
  • Комментарии
    (0)

Visitor

avatar
Ray

Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.


  • 17.06.2011 5:25:41
  • Votes (0)
  • Читает
    (1770)
  • Комментарии
    (0)

Strategy

avatar
Ray

Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.


  • 17.06.2011 5:18:45
  • Votes (0)
  • Читает
    (1709)
  • Комментарии
    (0)

State

avatar
Ray

Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.

    • Подаваемым на основании:
    • Behavioral Patterns

  • 17.06.2011 5:07:47
  • Votes (0)
  • Читает
    (1541)
  • Комментарии
    (0)

Observer

avatar
Ray

Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.


  • 17.06.2011 5:01:28
  • Votes (1)
  • Читает
    (1829)
  • Комментарии
    (0)

Memento

avatar
Ray

Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.


  • 17.06.2011 4:52:12
  • Votes (0)
  • Читает
    (1655)
  • Комментарии
    (0)

Mediator

avatar
Ray

Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.


  • 17.06.2011 4:45:22
  • Votes (0)
  • Читает
    (1502)
  • Комментарии
    (0)

Interpreter

avatar
Ray

Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.


  • 17.06.2011 4:03:51
  • Votes (0)
  • Читает
    (1229)
  • Комментарии
    (0)

Chain of Responsibility

avatar
Ray

Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.

    • Подаваемым на основании:
    • Behavioral Patterns

  • 17.06.2011 3:57:50
  • Votes (0)
  • Читает
    (1099)
  • Комментарии
    (0)

Command

avatar
Ray

Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.


  • 17.06.2011 3:51:35
  • Votes (0)
  • Читает
    (1130)
  • Комментарии
    (0)

Iterator password

avatar
Ray

Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.


  • 17.06.2011 0:00:00
  • Votes (0)
  • Читает
    (964)
  • Комментарии
    (0)