&扇 MVC UNIVE 11 MVC is a compound pattern consisting of the Observer (model),Strategy (controller)and Composite (view)patterns. The Adapter pattern can be used to adapt a new model to an existing view and controller. Institute of Computer Software 2022-2-27 Nanjing University
MVC MVC is a compound pattern consisting of the Observer (model), Strategy (controller) and Composite (view) patterns. The Adapter pattern can be used to adapt a new model to an existing view and controller. 2022-2-27 Institute of Computer Software Nanjing University 11
&扇 Pattern Definition Review 1902 12 A Pattern is a solution to a problem in a context. ▣ Context:the recurring situation in which the pattern applies Problem:the goal you are trying to achieve in this context and any constrains that occur in the context. Solution:a general design that anyone can apply which resolves the goal and set of constraints Institute of Computer Software 2022-2-27 Nanjing University
Pattern Definition Review A Pattern is a solution to a problem in a context. Context: the recurring situation in which the pattern applies Problem: the goal you are trying to achieve in this context and any constrains that occur in the context. Solution: a general design that anyone can apply which resolves the goal and set of constraints 2022-2-27 Institute of Computer Software Nanjing University 12
Pattern Categories I --Goal 102 13 Creational Patterns:involve object instantiation and all provide a way to decouple a client from the objects it needs to instantiate. 口 Structural Patterns:compose classes or objects into larger structures. Behavioral Patterns:concerned with how classes and objects interact and distribute responsibility Institute of Computer Software 2022-2-27 Nanjing University
Pattern Categories I -- Goal Creational Patterns: involve object instantiation and all provide a way to decouple a client from the objects it needs to instantiate. Structural Patterns: compose classes or objects into larger structures. Behavioral Patterns: concerned with how classes and objects interact and distribute responsibility 2022-2-27 Institute of Computer Software Nanjing University 13
&扇 Pattern Categories ll --Scope 1002 UNIVE 14 Class Patterns Describe how relationships between classes are defined via inheritance. Relationships in class patterns are established at compile time. Template Method Factory Method Interpreter Adapter Institute of Computer Software 2022-2-27 Nanjing University
Pattern Categories II -- Scope Class Patterns Describe how relationships between classes are defined via inheritance. Relationships in class patterns are established at compile time. 2022-2-27 Institute of Computer Software Nanjing University 14 Template Method Interpreter Adapter Factory Method
&雪扇 Pattern Categories ll --Scope 102 15 Object Patterns Describe relationships between objects and are primarily defined by composition. Relationships in object patterns are typically created at runtime and are more dynamic and flexible Composite Visitor Decorator lterator Command Proxy Strategy Facade Observer Chain of Responsibility Prototype Flyweight Mediator Bridge State Builder Memento Singleton Abstract Factory Institute of Computer Software 2022-2-27 Nanjing University
Pattern Categories II -- Scope Object Patterns Describe relationships between objects and are primarily defined by composition. Relationships in object patterns are typically created at runtime and are more dynamic and flexible 2022-2-27 Institute of Computer Software Nanjing University 15 Composite V Decorator isitor Iterator Command Memento Proxy Facade Observer Chain of Responsibility Builder Singleton Prototype Flyweight Mediator Bridge State Abstract Factory Strategy