Browse > Article
http://dx.doi.org/10.9717/kmms.2016.19.8.1544

A Study on the Undo Function Implementation using the Design Patterns  

Kim, Tai Suk (Dept. of Computer Software Engineering, Dong-Eui University)
Kim, Jong Soo (Dept. of System Management, Korea Lift College)
Publication Information
Abstract
If the undo/redo function is not reflected in the initial design of an application, it makes it difficult to implement the undo/redo function additionally, in this paper, we examined some examples to design the sodoku game and analyzed problems of the design to implement the undo/redo functions. For an efficient design of the undo/redo functions without using swing.undo package, we propose a class design using the Command, Memento, and Observer pattern these are used as organic. The proposed method is more efficient for distributed work than other method. We implemented a sudoku game using proposed design. In the undo/redo function testing, we could see that it works well.
Keywords
Undo; Design Patterns; Command Pattern; Memento Pattern; Observer Pattern;
Citations & Related Records
연도 인용수 순위
  • Reference
1 D.S. Park, H.J. Shin, and H.K. Kim, "A Study on the Component based Service Oriented Architecture through Facade Design Pattern," Proceedings of the Korea Multimedia Society Conference, pp. 583-589, 2003.
2 Undoable Drawing Panel, http://www.java2s.com/Code/Java/Swing-JFC/UndoableDrawingPanel2.htm (accessed Mar., 8, 2016).
3 Working With Design Patterns: Memento, http://www.developer.com/design/article.php/3720566/Working-With-Design-Patterns-Memento.htm (accessed Mar., 8, 2016).
4 Memento Pattern, http://www.oodesign.com/memento-pattern.html (accessed Apr., 8, 2016).
5 E. Gamma, R. Johnson, R. Johnson, and H. Vissides, Design Patterns(Elements of Reusable Object-Oriented Software), Addison-Wesley Publishing Company, Boston, 1995.
6 Find a Sudoku Quiz at Google Play, https://play.google.com/store/search?q=sudoku=apps (accessed Jun., 9, 2016).
7 Open Sudoku, https://github.com/ogarcia/opensudoku (accessed Jun., 2, 2016).
8 J.S. Kim and T.S. Kim, "Design of Networkbased Game using the GoF Design Patterns," Journal of Korea Multimedia Society, Vol. 9, No. 6, pp. 742-749, 2006.