The state pattern is a similar to the command pattern, but the intent is quite different.
状态模式类似于命令模式,但是意图截然不同。
The Command pattern says, "I don't care what the code to run is; just put in this method."
Command模式说,“我不关心运行的代码是什么,把它放在该方法中就行了。”
This list can give you some good examples of what kind of problems o features are suitable for command pattern.
这列表可以给你一些什么样的问题特征的例子为命令模式是合适的。
A command pattern is created for the selection of the correct rule and its execution in the corresponding rule engine.
创造了一个命令模式进行正确规则的选择及其在相应规则引擎上的执行。
As far as I know, four terms always associated with the command pattern are command, receiver, invoker and client.
据我所知,总是与命令模式相关的四项命令,接收,调用和客户端。
Implementation of a command pattern with Web services, where a SOAP message defines the command and attachments contained in supporting XML documents.
Web服务的命令模式的实现,SOAP消息在此定义了命令及附件,它们被包含在支持的XML文档中。
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.
我在学习命令设计模式。据我所知,总是与命令模式相关的四项命令,接收,调用和客户端。
Purdy also highlighted the Coherence incubator which has grown to include implementations of core application building blocks such as command pattern and messaging frameworks.
Purdy同时强调了Coherence孵化器,包括核心应用构建块的实现,比如命令模式和信息框架。
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 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 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 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.
责任链模式通过在可能的接受方传递请求来解耦,而命令模式是通过将请求封装成对象。
Pattern: Deployers, or headless processes, can type a single command to generate working software for users.
模式:部署者或无头流程只需输入单一命令,即可为用户生成有效的软件。
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.
它们指定一种模式,紧跟在规则表达式地址之后的命令将仅适用于正好与该特定模式匹配的行。
Pattern: Securely interface with multiple machines without typing a command.
模式:安全地与多台计算机进行交互,而不需要输入任何命令。
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命令会输出输入文件中的每个行。
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命令包括一个模式和由一条或多条语句构成的操作,语法如下所示。
Once a line was read into the pattern buffer, it performed the 'd' command and printed the contents of the pattern buffer (nothing in this example).
一旦将一行读入模式缓冲区,它就执行'd '命令,然后打印模式缓冲区的内容(在本例中没有内容)。
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.
公共设计模式提供了利用常规执行语句来在类中封装行为的方法。
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 中,可以使用 /命令搜索字符串,这需要以字面字符串或正则表达式的形式指定要匹配的模式。
After running this script using the -f command in the CLI, you should be able to verify the results by either querying the CLI for the new pattern, or by logging into the administration console.
在CLI使用- f命令运行完脚本后,您应当能够检查结果:在CLI中查询新模式,或是登录到管理控制台。
You'll also notice that we've replaced the 'd' command with the 'p' command, which as you might guess, explicitly commands sed to print the pattern space.
您还会注意到,我们用'p '命令替换了'd '命令,如您所猜想的那样,这明确要求sed打印模式空间。
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模式一直都是多线程和随机的。
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模式一直都是多线程和随机的。
应用推荐