• Title/Summary/Keyword: Memento Pattern

검색결과 1건 처리시간 0.016초

디자인 패턴을 이용한 Undo 기능 설계에 대한 연구 (A Study on the Undo Function Implementation using the Design Patterns)

  • 김태석;김종수
    • 한국멀티미디어학회논문지
    • /
    • 제19권8호
    • /
    • pp.1544-1552
    • /
    • 2016
  • 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.