Skip to content

Commit 4ac4bdb

Browse files
committed
get better readme
1 parent 5cd6db1 commit 4ac4bdb

File tree

18 files changed

+106
-106
lines changed

18 files changed

+106
-106
lines changed

Assets/Abstract Factory Pattern/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Provide an interface for creating families of related or dependent objects witho
1212
The classes and objects participating in this pattern are:
1313

1414
###AbstractFactory (ContinentFactory)
15-
declares an interface for operations that create abstract products
15+
* declares an interface for operations that create abstract products
1616
###ConcreteFactory (AfricaFactory, AmericaFactory)
17-
implements the operations to create concrete product objects
17+
* implements the operations to create concrete product objects
1818
###AbstractProduct (Herbivore, Carnivore)
19-
declares an interface for a type of product object
19+
* declares an interface for a type of product object
2020
###Product (Wildebeest, Lion, Bison, Wolf)
21-
defines a product object to be created by the corresponding concrete factory
22-
implements the AbstractProduct interface
21+
* defines a product object to be created by the corresponding concrete factory
22+
* implements the AbstractProduct interface
2323
###Client (AnimalWorld)
24-
uses interfaces declared by AbstractFactory and AbstractProduct classes
24+
* uses interfaces declared by AbstractFactory and AbstractProduct classes
2525

2626

Assets/Adapter Pattern/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Convert the interface of a class into another interface clients expect. Adapter
1010
The classes and objects participating in this pattern are:
1111

1212
###Target (ChemicalCompound)
13-
defines the domain-specific interface that Client uses.
13+
* defines the domain-specific interface that Client uses.
1414
###Adapter (Compound)
15-
adapts the interface Adaptee to the Target interface.
15+
* adapts the interface Adaptee to the Target interface.
1616
###Adaptee (ChemicalDatabank)
17-
defines an existing interface that needs adapting.
17+
* defines an existing interface that needs adapting.
1818
###Client (AdapterApp)
19-
collaborates with objects conforming to the Target interface.
19+
* collaborates with objects conforming to the Target interface.
2020

2121

Assets/Bridge Pattern/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
##Definition
33

44
Decouple an abstraction from its implementation so that the two can vary independently.
5-
<br>将抽象化(Abstraction)与实现化(Implementation)脱耦,使得二者可以独立地变化
5+
<br>将抽象和实现解耦,使得两者可以独立地变化
66

77
![](https://github.com/QianMo/Unity-Design-Pattern/blob/master/UML_Picture/bridge.gif)
88

@@ -12,12 +12,12 @@ Decouple an abstraction from its implementation so that the two can vary indepen
1212
The classes and objects participating in this pattern are:
1313

1414
###Abstraction (BusinessObject)
15-
defines the abstraction's interface.
16-
maintains a reference to an object of type Implementor.
15+
* defines the abstraction's interface.
16+
* maintains a reference to an object of type Implementor.
1717
###RefinedAbstraction (CustomersBusinessObject)
18-
extends the interface defined by Abstraction.
18+
* extends the interface defined by Abstraction.
1919
###Implementor (DataObject)
20-
defines the interface for implementation classes. This interface doesn't have to correspond exactly to Abstraction's interface; in fact the two interfaces can be quite different. Typically the Implementation interface provides only primitive operations, and Abstraction defines higher-level operations based on these primitives.
20+
* defines the interface for implementation classes. This interface doesn't have to correspond exactly to Abstraction's interface; in fact the two interfaces can be quite different. Typically the Implementation interface provides only primitive operations, and Abstraction defines higher-level operations based on these primitives.
2121
###ConcreteImplementor (CustomersDataObject)
22-
implements the Implementor interface and defines its concrete implementation.
22+
* implements the Implementor interface and defines its concrete implementation.
2323

Assets/Builder Pattern/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Separate the construction of a complex object from its representation so that th
1212
The classes and objects participating in this pattern are:
1313

1414
###Builder (VehicleBuilder)
15-
specifies an abstract interface for creating parts of a Product object
15+
* specifies an abstract interface for creating parts of a Product object
1616
###ConcreteBuilder (MotorCycleBuilder, CarBuilder, ScooterBuilder)
17-
constructs and assembles parts of the product by implementing the Builder interface
18-
defines and keeps track of the representation it creates
19-
provides an interface for retrieving the product
17+
* constructs and assembles parts of the product by implementing the Builder interface
18+
* defines and keeps track of the representation it creates
19+
* provides an interface for retrieving the product
2020
###Director (Shop)
21-
constructs an object using the Builder interface
21+
* constructs an object using the Builder interface
2222
###Product (Vehicle)
23-
represents the complex object under construction. ConcreteBuilder builds the product's internal representation and defines the process by which it's assembled
24-
includes classes that define the constituent parts, including interfaces for assembling the parts into the final result
23+
* represents the complex object under construction. ConcreteBuilder builds the product's internal representation and defines the process by which it's assembled
24+
* includes classes that define the constituent parts, including interfaces for assembling the parts into the final result
2525

Assets/Chain of Responsibility Pattern/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Avoid coupling the sender of a request to its receiver by giving more than one o
1212
The classes and objects participating in this pattern are:
1313

1414
###Handler (Approver)
15-
defines an interface for handling the requests
16-
(optional) implements the successor link
15+
* defines an interface for handling the requests
16+
* (optional) implements the successor link
1717
###ConcreteHandler (Director, VicePresident, President)
18-
handles requests it is responsible for
19-
can access its successor
20-
if the ConcreteHandler can handle the request, it does so; otherwise it forwards the request to its successor
18+
* handles requests it is responsible for
19+
* can access its successor
20+
* if the ConcreteHandler can handle the request, it does so; otherwise it forwards the request to its successor
2121
###Client (ChainApp)
22-
initiates the request to a ConcreteHandler object on the chain
22+
* initiates the request to a ConcreteHandler object on the chain
2323

Assets/Command Pattern/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ Encapsulate a request as an object, thereby letting you parameterize clients wit
1010
The classes and objects participating in this pattern are:
1111

1212
###Command
13-
declares an interface for executing an operation
13+
* declares an interface for executing an operation
1414
###ConcreteCommand
15-
defines a binding between a Receiver object and an action
16-
implements Execute by invoking the corresponding operation(s) on Receiver
15+
* defines a binding between a Receiver object and an action
16+
* implements Execute by invoking the corresponding operation(s) on Receiver
1717
###Client
18-
creates a ConcreteCommand object and sets its receiver
18+
* creates a ConcreteCommand object and sets its receiver
1919
###Invoker
20-
asks the command to carry out the request
20+
* asks the command to carry out the request
2121
###Receiver
22-
knows how to perform the operations associated with carrying out the request.
22+
* knows how to perform the operations associated with carrying out the request.
2323

2424

2525

Assets/Composite Pattern/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ Compose objects into tree structures to represent part-whole hierarchies. Compos
1212
The classes and objects participating in this pattern are:
1313

1414
###Component (DrawingElement)
15-
declares the interface for objects in the composition.
16-
implements default behavior for the interface common to all classes, as appropriate.
17-
declares an interface for accessing and managing its child components.
18-
(optional) defines an interface for accessing a component's parent in the recursive structure, and implements it if that's appropriate.
15+
* declares the interface for objects in the composition.
16+
* implements default behavior for the interface common to all classes, as appropriate.
17+
* declares an interface for accessing and managing its child components.
18+
* (optional) defines an interface for accessing a component's parent in the recursive structure, and implements it if that's appropriate.
1919
###Leaf (PrimitiveElement)
20-
represents leaf objects in the composition. A leaf has no children.
21-
defines behavior for primitive objects in the composition.
20+
* represents leaf objects in the composition. A leaf has no children.
21+
* defines behavior for primitive objects in the composition.
2222
###Composite (CompositeElement)
23-
defines behavior for components having children.
24-
stores child components.
25-
implements child-related operations in the Component interface.
23+
* defines behavior for components having children.
24+
* stores child components.
25+
* implements child-related operations in the Component interface.
2626
###Client (CompositeApp)
27-
manipulates objects in the composition through the Component interface.
27+
* manipulates objects in the composition through the Component interface.
2828

Assets/Decorator Pattern/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Attach additional responsibilities to an object dynamically. Decorators provide
1212
The classes and objects participating in this pattern are:
1313

1414
###Component (LibraryItem)
15-
defines the interface for objects that can have responsibilities added to them dynamically.
15+
* defines the interface for objects that can have responsibilities added to them dynamically.
1616
###ConcreteComponent (Book, Video)
17-
defines an object to which additional responsibilities can be attached.
18-
Decorator (Decorator)
19-
maintains a reference to a Component object and defines an interface that conforms to Component's interface.
17+
* defines an object to which additional responsibilities can be attached.
18+
###Decorator (Decorator)
19+
* maintains a reference to a Component object and defines an interface that conforms to Component's interface.
2020
###ConcreteDecorator (Borrowable)
21-
adds responsibilities to the component.
21+
* adds responsibilities to the component.
2222

Assets/Facade Pattern/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Provide a unified interface to a set of interfaces in a subsystem. Façade defin
1212
The classes and objects participating in this pattern are:
1313

1414
###Facade (MortgageApplication)
15-
knows which subsystem classes are responsible for a request.
16-
delegates client requests to appropriate subsystem objects.
15+
* knows which subsystem classes are responsible for a request.
16+
* delegates client requests to appropriate subsystem objects.
1717
###Subsystem classes (Bank, Credit, Loan)
18-
implement subsystem functionality.
19-
handle work assigned by the Facade object.
20-
have no knowledge of the facade and keep no reference to it.
18+
* implement subsystem functionality.
19+
* handle work assigned by the Facade object.
20+
* have no knowledge of the facade and keep no reference to it.
2121

Assets/Factory Method Pattern/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Define an interface for creating an object, but let subclasses decide which clas
1212
The classes and objects participating in this pattern are:
1313

1414
###Product (Page)
15-
defines the interface of objects the factory method creates
16-
ConcreteProduct (SkillsPage, EducationPage, ExperiencePage)
17-
implements the Product interface
15+
* defines the interface of objects the factory method creates
16+
* ConcreteProduct (SkillsPage, EducationPage, ExperiencePage)
17+
* implements the Product interface
1818
###Creator (Document)
19-
declares the factory method, which returns an object of type Product. Creator may also define a default implementation of the factory method that returns a default ConcreteProduct object.
20-
may call the factory method to create a Product object.
19+
* declares the factory method, which returns an object of type Product. Creator may also define a default implementation of the factory method that returns a default ConcreteProduct object.
20+
* may call the factory method to create a Product object.
2121
###ConcreteCreator (Report, Resume)
22-
overrides the factory method to return an instance of a ConcreteProduct.
22+
* overrides the factory method to return an instance of a ConcreteProduct.
2323

0 commit comments

Comments
 (0)