文件名称:Command
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2017-07-06
- 文件大小:
- 24kb
- 下载次数:
- 0次
- 提 供 者:
- Coa***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
命令模式实现餐厅
将来自客户端的请求传入一个对象,从而使你可用不同的请求对客户进行参数化。用于“行为请求者”与“行为实现者”解耦,可实现二者之间的松耦合,以便适应变化。分离变化与不变的因素。
①接收者Receiver:是一个类的实例,负责执行与请求相关的具体操作;
②命令接口Command:封装请求的若干个方法;
③具体命令ConcreteCommand:实现命令接口类的实例;
④请求者Invoker:是一个包含Command接口变量的类的实例。请求者负责
调用具体命令,让具体命令执行那些封装了请求的方法。(Command pattern.
The request from the client is passed into an object so that you can parameterize the client with different requests. Used for "behavior requester" and "behavior realization" decoupling, can achieve between the two loose coupling, in order to adapt to change. Separation, change, and constant factor.)
将来自客户端的请求传入一个对象,从而使你可用不同的请求对客户进行参数化。用于“行为请求者”与“行为实现者”解耦,可实现二者之间的松耦合,以便适应变化。分离变化与不变的因素。
①接收者Receiver:是一个类的实例,负责执行与请求相关的具体操作;
②命令接口Command:封装请求的若干个方法;
③具体命令ConcreteCommand:实现命令接口类的实例;
④请求者Invoker:是一个包含Command接口变量的类的实例。请求者负责
调用具体命令,让具体命令执行那些封装了请求的方法。(Command pattern.
The request from the client is passed into an object so that you can parameterize the client with different requests. Used for "behavior requester" and "behavior realization" decoupling, can achieve between the two loose coupling, in order to adapt to change. Separation, change, and constant factor.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Command\.classpath
Command\.project
Command\.reverse.properties
Command\.settings\org.eclipse.jdt.core.prefs
Command\bin\jdp\ChickenCommand.class
Command\bin\jdp\ChopCommand.class
Command\bin\jdp\Client.class
Command\bin\jdp\Command.class
Command\bin\jdp\CommandQueue.class
Command\bin\jdp\CookApi.class
Command\bin\jdp\CookManager.class
Command\bin\jdp\DuckCommand.class
Command\bin\jdp\FishCommand.class
Command\bin\jdp\HotCook.class
Command\bin\jdp\MenuCommand.class
Command\bin\jdp\uml.uml
Command\bin\jdp\uml.umldi
Command\bin\jdp\Waiter.class
Command\src\jdp\ChickenCommand.java
Command\src\jdp\ChopCommand.java
Command\src\jdp\Client.java
Command\src\jdp\Command.java
Command\src\jdp\CommandQueue.java
Command\src\jdp\CookApi.java
Command\src\jdp\CookManager.java
Command\src\jdp\DuckCommand.java
Command\src\jdp\FishCommand.java
Command\src\jdp\HotCook.java
Command\src\jdp\MenuCommand.java
Command\src\jdp\uml.uml
Command\src\jdp\uml.umldi
Command\src\jdp\Waiter.java
Command\bin\jdp
Command\src\jdp
Command\.settings
Command\bin
Command\src
Command
Command\.project
Command\.reverse.properties
Command\.settings\org.eclipse.jdt.core.prefs
Command\bin\jdp\ChickenCommand.class
Command\bin\jdp\ChopCommand.class
Command\bin\jdp\Client.class
Command\bin\jdp\Command.class
Command\bin\jdp\CommandQueue.class
Command\bin\jdp\CookApi.class
Command\bin\jdp\CookManager.class
Command\bin\jdp\DuckCommand.class
Command\bin\jdp\FishCommand.class
Command\bin\jdp\HotCook.class
Command\bin\jdp\MenuCommand.class
Command\bin\jdp\uml.uml
Command\bin\jdp\uml.umldi
Command\bin\jdp\Waiter.class
Command\src\jdp\ChickenCommand.java
Command\src\jdp\ChopCommand.java
Command\src\jdp\Client.java
Command\src\jdp\Command.java
Command\src\jdp\CommandQueue.java
Command\src\jdp\CookApi.java
Command\src\jdp\CookManager.java
Command\src\jdp\DuckCommand.java
Command\src\jdp\FishCommand.java
Command\src\jdp\HotCook.java
Command\src\jdp\MenuCommand.java
Command\src\jdp\uml.uml
Command\src\jdp\uml.umldi
Command\src\jdp\Waiter.java
Command\bin\jdp
Command\src\jdp
Command\.settings
Command\bin
Command\src
Command