state-pattern
NHibernate and State Pattern persistance - a good implementation?
Below is my implementation of the state pattern. In order to persist the State object to my database with NHibernate, I am assigning each state class an enum value. This is stored as a private field o[详细]
2022-12-30 06:15 分类:问答To use or not to use the State Pattern?
I\'m designing a pinball game for a Uni project in which there are supposed to be 2 modes: running mode and builder mode, whereby one can design/redesign the layout of the machine.[详细]
2022-12-18 19:35 分类:问答State Pattern with Memory
I was using State Pattern in a normal state machine. I wanted to be able to go from [A -> B], [B -> C], and [A -> C].[详细]
2022-12-16 01:20 分类:问答How to avoid long switch ..need help refactoring
i needed help refactoring the following class, Following is a class Operation with variety of Operations in switch :[详细]
2022-12-14 14:09 分类:问答What is the difference between Strategy design pattern and State design pattern?
What are the differences between the Strategy design pattern and the State design pattern? I was going through quite a few articles on the web but could开发者_开发问答 not make out the difference clea[详细]
2022-12-09 19:54 分类:问答Using a 'variation' on State Pattern - C++
Overview: I am trying to improve the design of a program that I am using state pattern for.I will post a brief description of the problem, an image of the class diagram/description of the current de[详细]
2022-12-08 20:04 分类:问答
加载中,请稍侯......