毕业论文

打赏
当前位置: 毕业论文 > 计算机论文 >

命令模式在软件设计中的应用

时间:2019-01-08 22:25来源:毕业论文
以面向对象技术为基础的软件设计模式的基本概念,并且重点解释了命令模式在软件设计中的应用。以记事本为例的撤销行为展示的具体应用,并且说明了使用软件设计模式的正确使用

摘要软件设计模式是人们在实践过程中总结出来的成功设计范例,是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。它的正确选择和使用是发挥模式作用的关键。有效地使用软件设计模式,可以极大的帮助我们克服在软件开发过程中所面临的种种困难,而且灵活地运用软件设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。
本论文介绍了以面向对象技术为基础的软件设计模式的基本概念,并且重点解释了命令模式在软件设计中的应用。以记事本为例的撤销行为展示的具体应用,并且说明了使用软件设计模式的正确使用方法。32460
毕业论文关键词:软件设计模式;面向对象;命令模式
The application of the command mode in software design
Abstract Software design patterns are summed up in the process of practice of successful design examples, is a set of repeated use, most people know, through catalog, code design experience summary.The correct selection and use is the key to play a model role. Effective use of software design patterns, can greatly help us to overcome the difficulties faced in the process of software development, and flexible use of software design pattern is for the sake of reusable code, make code easier to understand others, to guarantee the credibility of the code.
    This paper introduces the object-oriented technology based the basic concept of software design patterns, and the key to explain the application of command mode in software design.In notepad, for example demonstrate the concrete application of revocation of behavior, and illustrates the use the correct way of using the software design patterns. 
Keywords: Software Design Patterns; Object-Oriented; Command Pattern
目录
摘要    i
Abstract    i
目录    3
1 绪论    1
1.1 课题背景    1
1.2 面向对象程序设计思想    1
1.3 软件设计模式的相关概念    3
1.4 本课题的研究思路    4
1.4.1 研究意义    4
1.4.2 研究思路    4
1.4.3 研究难点    5
1.5 论文主要工作    5
2 软件开发环境的介绍    6
2.1 VISUAL STUDIO 2010软件设计平台    6
2.2 VISUAL STUDIO 2010中WPF技术简介    8
3 软件设计分析    9
3.1 软件设计思路    9
3.2 命令模式的分析    9
  3.2.1 命令模式概念    9
3.2.2 命令模式结构    9
3.2.3 命令模式分析    10
3.3 设计原则    10
3.4  UML类图的设计以及类的解耦合    10
4 软件实现及测试    18
4.1 记事本界面    18
4.2 按钮界面    19
4.3 撤销界面    19
4.4 软件测试    20
5 命令模式在其他场景的应用    23
5.1 日志请求    23
5.2 队列请求    23
5.3 适合命令模式的场景    24
6 总结    25
6.1 毕业设计总结    25
致谢    27
参考文献    28
附录    29
1    绪论
1.1    课题背景
设计模式(英语 design pattern)是对面向对象设计中反复出现的问题的解决方案。这个术语是在1990年代由Erich Gamma等人从建筑设计领域引入到计算机科学中来的。这个术语的含义还存有争议。算法不是设计模式,因为算法致力于解决问题而非设计问题。设计模式通常描述了一组相互紧密作用的类与对象。设计模式提供一种讨论软件设计的公共语言,使得熟练设计者的设计经验可以被初学者和其他设计者掌握。设计模式还为软件重构提供了目标。 命令模式在软件设计中的应用:http://www.youerw.com/jisuanji/lunwen_29044.html
------分隔线----------------------------
推荐内容