zkk
zkk

Reputation: 207

Is it necessary for a uml state machine to have a shallow history?

Our supervisor said it is necessary for a composite state to have a shallow history..otherwise your tool that you are building does not make sense? Is this correct? The tool is an undergraduate project that allows a subset of class and state machine diagrams to be built..you can see screenshot on cyrusuml.com

Upvotes: 2

Views: 91

Answers (1)

Martin Spamer
Martin Spamer

Reputation: 5585

It depends on the context, if the state machine needs to roll-back for any reason then the answer is yes. A example would be Parser for an LALR (Look-Ahead/Left to Right) Grammar were it is essential. However if there are is no need for roll-back then the answer would be no.

In this case since you are modeling state machines you need to be able to handle both kinds, those with and without roll-back; other wise as he says your tool is useless.

Upvotes: 2

Related Questions