I. Introduction to the Model
Appearance patterns (façade pattern) can wrap a series of complex classes into a simple, closed interface. Also called the façade mode.
Second, the mode of intent
Each design pattern has its purpose, and we look at how the design patterns of the patriarch say it. According to Gof, the façade pattern is intended to provide a consistent interface for a set of interfaces in a subsystem, and the façade pattern defines a high-level interface that makes the subsystem easier to use.
Model UML (The following image is transferred from http://www.dofactory.com/)
Iv. Model Participants
Façade (façade) Role: A method by which a client can invoke this role.
This role is aware of the functions and responsibilities of the related (one or more) subsystems.
Normally, this role delegates all requests sent from the client to the appropriate subsystem.
subsystem (SUBSYSTEM) Role: You can have one or more subsystems at the same time.
Implement subsystem functions to handle tasks assigned by a façade object.
Each subsystem is not a separate class, but rather a collection of classes.
Each subsystem can be called directly by the client or by a façade role.
Subsystems do not know the presence of the façade, for the subsystem, the façade is just another client.