This is an application of the Command pattern.
这是Command模式的一个应用。
A simplified version of the Command pattern is shown in Figure 6.
图6显示的是命令模式的一个简化版本。
The Command pattern used in this article has been simplified for clarity.
本文中使用到的Command模式为达到清楚明了,已作了一定的简化。
The goal of the command pattern is to decouple the invoker from the receiver.
的目标命令模式是调用从接收者解耦。
All business logic is encapsulated in Command objects by applying the Command pattern.
所有的业务逻辑通过应用Command模式来封装在Command对象中。
The server implements the Command pattern, so it can add new commands very easily.
服务器实现Command模式,所以它非常容易添加新命令。
The Command pattern says, "I don't care what the code to run is; just put in this method."
Command模式说,“我不关心运行的代码是什么,把它放在该方法中就行了。”
The state pattern is a similar to the command pattern, but the intent is quite different.
状态模式类似于命令模式,但是意图截然不同。
As far as I know, four terms always associated with the command pattern are command, receiver, invoker and client.
据我所知,总是与命令模式相关的四项命令,接收,调用和客户端。
To make tests into objects, they used the Command pattern, which encapsulates "a request as an object, thereby letting you […] queue or log requests."
为了使测试成为对象,他们使用了Command模式,该模式“将请求封装成对象,从而可以……建立请求队列或者记录请求”。
The command pattern is distinguished by the encapsulation of distinct activities into reusable objects whose behavior can be parameterized per request.
Command模式是非常有名的,它把一些独特的活动封装起来成为可重用的对象,对于每次请求,这些对象的行为都可以被参数化。
I am learning command design pattern. As far as I know, four terms always associated with the command pattern are command, receiver, invoker and client.
我在学习命令设计模式。据我所知,总是与命令模式相关的四项命令,接收,调用和客户端。
Based on the command pattern, utilizing the isolation of method invocation and method execution and using centralized schedule, we designed a flexible online evolution mechanism.
基于设计模式中的命令模式,利用方法调用与方法执行分离的原则和采用集中调度控制所有方法执行的方式,设计出一种灵活的软件在线演化机制。
Every command class created from the command pattern would write information to the log. This can include the name of the command class or any parameterized information in the pattern.
每个从command模式中建立的command类都会把信息写进日志,包括command类的名字或者模式中的任何参数信息。
The Command Pattern: encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations.
命令模式:将“请求”封装成对象,以便使用不同的请求队列或者日志来参数化其他对象。命令模式也支持可撤销的操作。
The framework we'll create is a simple 3-tier framework that processes business logic using three patterns: the 3-layer architecture pattern, the Singleton pattern, and the Command pattern.
我们将要建立的是一个简单的3-tier框架,它使用了三种模式处理业务逻辑:3-layer体系结构模式、Singleton模式和Command模式。
The Chain of Responsibility pattern supports decoupling by passing a request between potential receivers, whereas the command pattern supports using a command object to encapsulate a request.
责任链模式通过在可能的接受方传递请求来解耦,而命令模式是通过将请求封装成对象。
You can specify a pattern on the command line or a list of patterns in a text file.
可以在命令行上指定模式,或者在文本文件中指定模式列表。
They specify a pattern, and the command that immediately follows a regular expression address will only be applied to a line if it happens to match this particular pattern.
它们指定一种模式,紧跟在规则表达式地址之后的命令将仅适用于正好与该特定模式匹配的行。
A command pattern is created for the selection of the correct rule and its execution in the corresponding rule engine.
创造了一个命令模式进行正确规则的选择及其在相应规则引擎上的执行。
You can search for strings in vi using the / command, specifying the pattern to match either as a literal string or as a regular expression.
在vi 中,可以使用 /命令搜索字符串,这需要以字面字符串或正则表达式的形式指定要匹配的模式。
This produced no output, because the "d" command zapped every single line in the pattern buffer!
这不会产生输出,因为“d ”命令除去了模式缓冲区中的每一行!
The pattern and replacement can be practically anything, and they don't need to have a 1:1 relationship like they do with the tr command.
实际上,模式和替换可以是各种各样的内容,并且它们之间不需要像在tr命令中那样具有1:1的关系。
An awk command consists of a pattern and an action composed of one or more statements, as shown in the syntax below.
awk命令包括一个模式和由一条或多条语句构成的操作,语法如下所示。
The Command design pattern provides a way to encapsulate behavior in a class with well-known execution semantics. Listing 4 shows the result of applying these two patterns to the code in Listing 3.
公共设计模式提供了利用常规执行语句来在类中封装行为的方法。
This command does not mirror actual usage on a Lotus Domino server because the I/O pattern for a Lotus Domino database is historically expected to be multi-threaded and random.
这个命令没有反映LotusDomino服务器上的实际使用,因为 Lotus Domino数据库的I/O模式一直都是多线程和随机的。
The command facade pattern is a combination of these two designed specifically for a service-oriented environment.
commandfacade模式是这两个模式的联合产物,是为了基于服务的环境而特别设计的。
Because it finds at least one match to its two-character pattern on every line, the grep command outputs every line in the input file.
由于会在每行至少找到此双字符模式的一个匹配项,因此grep命令会输出输入文件中的每个行。
The command facade pattern combines these two approaches by introducing a facade interface that sits in front of one or more command objects.
commandfacade模式通过引入位于一个或多个command对象前端的facade接口来合并这两种方式。
The command facade pattern combines these two approaches by introducing a facade interface that sits in front of one or more command objects.
commandfacade模式通过引入位于一个或多个command对象前端的facade接口来合并这两种方式。
应用推荐