Rather than giving you a lengthy explanation, let me just point you to the Strategy pattern.
让我简单的说一下关键的策略模式而不是给你一段冗长的解释。
Fans of the Strategy pattern will likely have already started to salivate uncontrollably.
Strategy模式的粉丝们可能已经开始唾沫横飞了。
The strategy pattern is usually implemented in a single address space using a single programming language.
该策略模式通常使用单个编程语言在单个地址空间内实现。
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable.
策略模式定义了一族算法,并将每一个都进行封装使他们变得通用。
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable.
策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。
The Strategy pattern can be used to implement operations' variability, and the Decorator pattern can be used to implement parameters' variability.
Strategy模式可用于实现操作的可变性,Decorator 模式可用于实现参数的可变性。
In this case, the greater flexibility of the Strategy pattern will almost certainly prove beneficial, as it allows maximum freedom to the implementations.
在这种情况下,这个策略模式极大的灵活性将几乎必定提供益处,因为它允许自由实现的最大化。
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。
So here is an example: you have just added the Strategy pattern, and you have more flexibility. But the tradeoff is that you now have more objects and an additional level of indirection.
这就有一个例子,当你只是添加了策略模式时,你在得到了更多的灵活性的同时你也会拥有更多的对象和一个额外的间接层次。
I could point out other issues, for instance, where are the client side validations, adaptable workflow, and dynamic strategy pattern for the controller?
我还能指出其他问题,例如,控制器的客户端验证、可适用工作流程和动态策略模式在什么地方?
The cloud resource pattern and cloud task pattern are designed to be reused and we make no assumptions on the strategy you will choose.
云资源模式和云任务模式的设计是为了实现重用,所以我们并不要求您选择这种策略。
Context and problems: This is a variation of the strategy design pattern that can be applied in architectural contexts for SOA.
环境和问题:这是策略设计模式的变体,可以在SOA的体系结构环境中应用。
I would argue that such a pattern actually achieves better orthogonality in database design than does the more common strategy of identifying suitable "real world" data.
我不认为这样的模式在数据库设计中能够实际达到比标识适合“现实世界”数据的更常用策略更好的正交性。
The purely object-oriented strategy pattern primarily relies on inheritance-based polymorphism to create a family of interchangeable algorithms that are swapped out based on context.
纯粹的面向对象的策略模式主要依赖于基于继承的多态来创建根据环境交换的可互换算法系列。
This can be achieved with the pattern engine's merge strategy, which enables a merge of existing artifacts with new ones.
可以通过模式引擎的合并策略来实现,就是将现有构件与新生成的构件合并。
The strategy section shows how the managed resource pattern is extended to the cloud resource pattern and the managed task pattern is extended to the cloud task pattern.
策略部分介绍了托管资源模式是如何扩展到云资源模式的,以及托管任务模式是如何扩展到云任务的。
Because the executor pattern encapsulated execution for all services, a common exception-handling strategy was applied to all services.
因为执行程序模式将所有服务的执行封装了起来,所以可以将一个通用的异常处理策略应用于所有服务。
After a thorough analysis of the applicable application patterns, the Extended Enterprise Managed Public Processes pattern satisfies the given solution strategy and overall business objectives.
在详尽地分析可适用的应用程序模式之后,扩展企业管理的公共流程(Extended Enterprise Managed Public Process)模式满足给定的解决方案策略和整个业务目标。
This strategy uses the pattern "A" illustrated in Figure 3 - Using Web Services Gateway.
该策略使用了图3(使用Web服务网关)中的模式A。
Saxon's strategy is therefore to separate rules into two kinds: specific rules, where the node type and name are explicitly specified in the pattern, and general rules, where they aren't.
因此,Saxon的策略是将规则分成两种:特定规则(在模式中明确指定节点类型和名称)和一般规则(不指定节点类型和名称)。
In contrast to the common usage pattern of rewrite rules we will employ a specific rewriting strategy.
与此相反的重写规则,我们将采用一个特定的重写战略的共同使用模式。
pattern gave the overall, fundamental structure to the software architecture to support the project's product-line development strategy.
分层模式为软件体系结构提供了总体的基础结构,以支持项目的产品线开发策略。
An alternative to the Template Method is the Strategy design pattern, which factors the variant behavior into an interface.
模板方法模式的另一个选择是策略模式,它抽取了多变的行为到一个接口中。
The Strategy design pattern takes a little more work to implement than the Template Method pattern, but it is more flexible.
策略设计模式比模板方法模式花费了更多的工作去实现,但是它也更灵活。
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.
由于通常定义接口比定义类更好,模板方法模式通常被用于实现接口的策略。
It is revealed that every species exhibits its individual pattern of response to precipitation change that links to the growth strategy.
结果表明,每种植物都以自己的生长策略表现出独特的对降水量变化的响应格局。
After that, by expounding in detail key elements in the pattern, the author discuss the guide strategy of apply "project-based learning" in Science curriculum.
并通过对该模式中各关键要素较为详细的论述,进一步探讨了在科学课中开展研究性学习的指导策略。
Shen Congwen was not apt to the popular criticism pattern of that time, but to adopt a unique criticism strategy.
沈从文并不倾向于当时流行的批评模式,而是采取一种独特的批评策略。
Decision tree learning strategy have long been popular in pattern recognition, machine learning, and other disciplines for solving problems concerned with the classification.
决策树学习策略广泛应用于模式识别和机器学习等领域,用来解决与分类相关的问题。
Decision tree learning strategy have long been popular in pattern recognition, machine learning, and other disciplines for solving problems concerned with the classification.
决策树学习策略广泛应用于模式识别和机器学习等领域,用来解决与分类相关的问题。
应用推荐