The state event design pattern

Maamar El Amine Hamri, Rabah Messouci, Claudia Frydman · 2014

In this paper, we present the state event design pattern a generalization of the state one proposed by the Gang of Four. This new pattern provides an upgradeable and maintainable structure contrary to the state pattern. In fact, the idea is to objectify events making state changes on an object in addition to objectify states, with the wish of avoiding the use of condition statements. The motivation of this work has been our wish to propose an alternative design to code discrete event simulation models in object-oriented paradigm. So, we advise this pattern for every designer who wants making code of behavioral objects abstract and reusable for other applications.

Read the paper · More papers on PaperTik