Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    this is not really a Memento pattern at all, it's a State pattern. Which is probably why you're overthinking it. Commented Jun 21, 2013 at 17:01
  • 1
    As pdr said, this isn't memento. Right now it's one of the weaker implementations of the State pattern (IMO only; I prefer variations where states manage their transitions themselves). However, I think that what you're trying to get to is a Chain of Responsibility (en.wikipedia.org/wiki/Chain-of-responsibility_pattern). Commented Jun 21, 2013 at 20:20
  • Thanks for the clarification, apparently I wasn't implementing Memento correctly. Commented Jun 21, 2013 at 21:08