Book a Demo

Author Topic: transition from any state  (Read 2732 times)

Bokkie

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • Lima Bravo!
    • View Profile
transition from any state
« on: May 23, 2007, 11:14:20 pm »
Hello gurus,

In this state diagram I have I would like to draw/specify that a particular event causes a transition from any state to the 'error' state. At the moment I (ab)use an Entry Point for this purpose. Is this allowed or should I use another technique?

Regards, M.
« Last Edit: May 23, 2007, 11:14:35 pm by Bokkie »
Lima Bravo!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: transition from any state
« Reply #1 on: May 24, 2007, 12:03:57 am »
Perhaps this would work:

Wrap the set of "any" states in a single 'super' state. At the outer level create a state diagram where the super state transitions to an error state if the event occurs.

Now you have your original state diagram within a single state of the outer diagram. This seems correct given your explanation. It sounds like the error state you describe does not indicate that anything represented by the original "any" states is in error, but that the system (or part you are modeling) as a whole has received the event and entered the error state. This corresponds to the outer and inner model.

David
No, you can't have it!

Bokkie

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • Lima Bravo!
    • View Profile
Re: transition from any state
« Reply #2 on: May 24, 2007, 05:51:21 am »
Hmmm... sounds a bit cumbersome.

In the good old days when we chipped our SDL diagrams into stone plates we could specify the 'any' state with an '*'. Any state except the states 'A' and 'B' would then be "*,A,B"....

Those where the days  ;)
« Last Edit: May 24, 2007, 05:53:15 am by Bokkie »
Lima Bravo!

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: transition from any state
« Reply #3 on: May 24, 2007, 05:54:34 am »
Well said David!  I concurr...
Verbal Use Cases aren't worth the paper they are written upon.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: transition from any state
« Reply #4 on: May 24, 2007, 08:44:16 am »
Quote
Hmmm... sounds a bit cumbersome.

In the good old days when we chipped our SDL diagrams into stone plates we could specify the 'any' state with an '*'. Any state except the states 'A' and 'B' would then be "*,A,B"....

Those where the days  ;)

Now of course we have desktop workstations; all one needs to do is hit the oft-mentioned "any" key. My, how computers have simplified the world!
No, you can't have it!