Book a Demo

Author Topic: State transition to the border of the state  (Read 4249 times)

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
State transition to the border of the state
« on: May 23, 2007, 03:46:47 am »
Is the following state diagram done with EA 6.5 UML compliant?
If yes, what's the semantic of the last transition!?



Thanks for your help!

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: State transition to the border of the state
« Reply #1 on: May 23, 2007, 07:55:44 am »
IMO it is not compliant and could be confusing to a reader.

At the point where the transition out of State 5 reaches the border of state 1, you should define an Exit point (The little circle node with an "X" in it).  Once you have done that, the semantic is that when state 5 is exited, State 1 is also exited, but the new state is undefined.

If the new state is defined, then the transition out of state 5 should be connected to the new state and no exit point needs to be defined.
Verbal Use Cases aren't worth the paper they are written upon.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: State transition to the border of the state
« Reply #2 on: May 23, 2007, 08:38:41 pm »
Quote
IMO it is not compliant and could be confusing to a reader.
Dang, Jim, you beat me to it...  I was going to say the semantics were:  "I'm too lazy to to draw the Exit state" or "I didn't actually read the UML standard; but this sure is pretty!"

Examples should be exemplars!

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: State transition to the border of the state
« Reply #3 on: May 24, 2007, 04:37:30 am »
Quote
Dang, Jim, you beat me to it...
 With you, I've learned to read fast, think deeply, stay up late at night, and type like an engine's cam shaft.  8)
Verbal Use Cases aren't worth the paper they are written upon.

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: State transition to the border of the state
« Reply #4 on: May 24, 2007, 04:57:16 am »
Speaking of thinking deeply, we are making an assumption of what other intended semantics of the questionable transition  might be:
  • If exiting state 5 is only a termination of state 5 but a continuation of state 1, the transition out of state 5 should have a termination node fully within the boundary of state 1;
  • If exiting state 5 should cause a re-initialization of state 1, then the transition line should leave the outer state entirely and then return to the state 1's border, ending in an arrowhead.
All these possibilities are why I say the initial diagram is confusing.  UML diagrams must not be ambiguous.
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: State transition to the border of the state
« Reply #5 on: May 24, 2007, 06:38:01 am »
Of course if the business domain is Penology, then the original diagram might be just fine.   ;D
No, you can't have it!

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: State transition to the border of the state
« Reply #6 on: May 29, 2007, 06:33:18 am »
Thanks for your comments, they definitely helped.

It seems now to me that the diagram is UML correct, and means that when the sub-state State5 is exited, State1 is entered again from scratch.

Of course it is confusing, and EA custom lines should be used there:



The semantic should be the same as with the first diagram.
« Last Edit: May 29, 2007, 06:34:04 am by ocroquette »

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: State transition to the border of the state
« Reply #7 on: May 29, 2007, 06:45:59 am »
It also means, as currently diagrammed, that State 3 is also entered from scratch.
Verbal Use Cases aren't worth the paper they are written upon.

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: State transition to the border of the state
« Reply #8 on: May 29, 2007, 06:49:08 pm »
I like Bezier curves for this situation.

Verbal Use Cases aren't worth the paper they are written upon.