Such USES of the Template Method pattern offer good separation of concerns.
模板方法模式的这种用法提供了关注点的好的分离。
A servlet that USES the Template Method pattern to encapsulate a three-step workflow.
一个采用Template Method模式的Servlet封装一个包含三个步骤的工作流。
I am saying exposing abstract blocks in template method pattern is better in many scenarios.
我说暴露文摘块模板方法模式是更好的在许多情况下。
Similarly, classes using the Template Method pattern contain a series of steps, and some are left blank.
类似地,采用Template Method模式的类也包含一系列的步骤,而其余的则留空。
This differs from the Template Method pattern in that the abstract superclass doesn't handle workflow.
模板方法模式和抽象类的不同在与处理工作流程。
Template method pattern of GOF and the realization of template method pattern in back tracing algorithm are introduced.
在此介绍采用GOF的模板方法模式及采用回溯算法的模板方法模式的设计与实现。
The Strategy design pattern takes a little more work to implement than the Template Method pattern, but it is more flexible.
策略设计模式比模板方法模式花费了更多的工作去实现,但是它也更灵活。
This is slightly more complex to implement than the version using concrete inheritance with the Template Method pattern, but is more flexible.
这稍微的更复杂去实现比用模板方法模式在类继承的版本中,但是也更灵活。
The Template Method pattern suggests that I should move common boilerplate code up the inheritance hierarchy, deferring algorithmic details to child classes.
Template Method模式建议,应当将公共模板代码移到继承层次结构之上,将算法细节推迟到子类。
As it's usually better to define types in interfaces rather than classes, the Template Method pattern is often used as a strategy to implement an interface.
由于通常定义接口比定义类更好,模板方法模式通常被用于实现接口的策略。
Now, given that we're using the Template Method pattern, think of the methods in Listing 4 as the blanks and the code in Listing 5 as the story that assembles them
现在,假设我们正在使用Template Method模式,那么我们可以将清单4中的方法看作是空白,而清单5中的代码是组成故事的情节
The Template Method pattern defines the skeleton of an algorithm in a base class, using abstract methods and overriding to defer individual details to child classes.
Template Method模式定义了基类算法的骨架,使用了抽象方法和覆盖将具体细节放到子类中。
The "bridge" role from the broker pattern was then implemented using the template method pattern to support remote service invocation using several different underlying communication technologies.
中介模式的“桥接”角色是使用模板方法模式实现的,它通过几种不同的基础通信技术,为远程服务调用提供支持。
Using the template method for implementing the bridge role of the broker pattern provided a mechanism for adding alternative types of external communication in the future.
使用模板方法实现中介模式的桥接角色,这种做法提供了一种可以在将来添加外部通信备用类型的机制。
Always make the abstract parent class implement an interface. The Template Method design pattern is especially valuable in framework design (discussed towards the end of this chapter).
总是使抽象父类实现一个接口。模板方法设计模式在框架设计中特别有价值(在这章的结尾讨论了)。
Template matching method is the basic mode of pattern recognition technology.
模板匹配法是模式识别技术的基本模式。
An alternative to the Template Method is the Strategy design pattern, which factors the variant behavior into an interface.
模板方法模式的另一个选择是策略模式,它抽取了多变的行为到一个接口中。
The Template Method design pattern (GoF) addresses a common problem: we know the steps of an algorithm and the order in which they should be performed, but don't know how to perform all of the steps.
模板方法设计模式(gof)强调了一个普遍的问题:我们知道算法的每一步,并且知道他们执行的顺序,但是我们不知道怎么样去执行所有的这些步骤。
According to different mark pattern recognition, a method based on the number of connectivity areas of the pattern and a method based on template match are presented.
对不同标志图案识别问题,提出了连通域数量判别法和模板匹配法。
According to different mark pattern recognition, a method based on the number of connectivity areas of the pattern and a method based on template match are presented.
对不同标志图案识别问题,提出了连通域数量判别法和模板匹配法。
应用推荐