使用Command设计模式实现编辑器的RedoUndo  被引量:3

Using the Command Design Pattern to Implement the RedoUndo Function in Editor

在线阅读下载全文

作  者:侯军伟[1] 康慕宁[1] 

机构地区:[1]西北工业大学计算机学院,西安710129

出  处:《科学技术与工程》2010年第4期1033-1036,共4页Science Technology and Engineering

摘  要:设计模式是对于共性问题成功的解决方案,采用设计模式可以减少系统设计的复杂度,提高系统开发的效率[1]。Command模式是常用的23种设计模式中的一种。Command模式是将"动作"进行抽象,将与动作有关的所有信息进行封装,从而实现调用操作的对象与知道如何实现该操作的对象解耦。RedoUndo是现代编译器中必不可少的一种工具,可以提高工作效率。详细探讨了如何使用Command模式实现RedoUndo以及各种扩展。Design pattern is that people make in order to improve software reuse an object-oriented design methodology. Command pattern is a design pattern in which an object is used to represent and encapsulate all the information needed to call a method at a later time. This information includes the method name, the object that owns the method and values for the method parameters. RedoUndo is indispensable in modern editor as a tool that can improve work efficiency. How to use the command pattern to achieve RedoUndo and various extensions are discussed in detail.

关 键 词:设计模式 COMMAND模式 RedoUndo 

分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象