design mode UML Model diagram

Source: Internet
Author: User

1. Abstract Factory Mode



Intent: To provide specific series of objects for a particular customer (or case).

2. Class of Adapter (Adapter) mode



Intent: To convert the interface of one class into another interface that the customer wants.

3. Object's adapter (Adapter) mode



Intent: To convert the interface of one class into another interface that the customer wants.

4. Bridge/Handle body (Handle and body) mode



Intention: To separate the abstract part from its implementation, so that they can all change independently.

5. Build (builder) mode



Intent: To separate the construction of a complex object from its representation so that the same build process can create different representations.


11. Façade (facade) mode



Intent: Provides a consistent interface for a set of interfaces in a subsystem that defines a high-level interface that makes this subsystem easier to use.

12. Factory methods (Factory method)/virtual Constructor/polymorphism factory (polymorphic Factory) mode



Intent: Defines an interface for creating an object, letting subclasses decide which class to instantiate.

13. Enjoy meta (Flyweight) mode



Intent: The use of shared technology to effectively support a large number of fine-grained objects.

14. Interpreter (interpreter) mode



Intention: Given a language, define a representation of its grammar, and define an interpreter that uses that representation to interpret sentences in the language.

15. Iteration Sub (Iterator)/cursor mode




Intent: Provides a way to sequentially access individual elements of an aggregated object without exposing the object's internal representation.


16. Mediator (mediator) mode

Intent: Use a Mediation object to encapsulate a series of object interactions.

17. Memo (Memento) mode



Intent: To capture the internal state of an object without destroying the encapsulation, and to save the state outside the object.

18. Observer (Observer) mode



Intent: Define a one-to-many dependency between objects, and when the state of an object changes, all objects that depend on it are notified and automatically updated.

19. Prototype (Prototype) mode



Intent: Use the prototype instance to specify the kind of object to create and create a new object by copying the prototypes.

20. Proxy mode



Intent: Provides a proxy for other objects to control access to this object.


21. Single case (Singleton) mode




Intent: Ensure that a class has only one instance and provides a global access point to access it.

22. Status (State) mode



Intent: Allows an object to change its behavior when its internal state changes.

23. Policy (strategy) mode



Intent: Define a series of algorithms, encapsulate them one by one, and make them interchangeable with each other.

24. Template Method Mode



Intent: Define the skeleton of an algorithm in an operation, and defer some steps into the subclass.

25. Visitor (Visitor) mode



Intent: Represents an operation that acts on elements in an object's structure.

==========================================================

















































design mode UML Model diagram

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.