What's the difference between State, IntegerState, ExplicitIntegerState and ImplicitIntegerState?

StackOverflow https://stackoverflow.com/questions/17249298

Pregunta

I'm familiar with the state pattern, but recently I've heard about the three other design patterns mentioned in the title. I have no idea what distinguishes those three patterns from the normal state pattern, and Google also doesn't help!


UPDATE: I've originally found those patterns in the following graphic (headline: relationship between design patterns), but without any additional information about them:

design patterns

¿Fue útil?

Solución

I have found what seems to be the answer to your question but it is written in dutch which i believe won't be a problem for you. From what i was able to extract from the text, IntegerState and its two variants you have mentioned are used to implement State Machines or Automaton using integer constants instead of typical polymorphism, anyway i could be wrong because i don't understand dutch so here is the link to the Lecture Note.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top