Purpose and task
Objective: familiar with the UML, familiar with the chain of responsibility, command mode.
Tasks: in accordance with the requirements of the experiment content, done using the chain of responsibility, command mode to achieve the experiment content
Content preview Review the contents of the course, familiar with the chain of responsibility, command mode. |
|||||||
Experiment contents and requirements
1, students typically leave class one day, three days Dean, Dean seven days, please Chain of Responsibility pattern is given in conjunction with the class diagram and implemented.
|
|||||||
The results (available Continued)
Handler (abstract handler):
ConcreteHandler (specifically Processor):
Test categories: result: Class Diagram: Second, the command mode: The Command (abstract command classes):
ConcreteCommand(具体命令类):
Invoker(调用者):
Receiver(接收者):
思考题:
责任链模式
2、电视机有三个操作:开机、关机、换台,可以通过遥控器操作,请设计类图,模拟该系统。
|