Book a Demo

Author Topic: State Machine to Enumeration  (Read 12550 times)

coolfish

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
State Machine to Enumeration
« on: April 30, 2012, 12:44:17 pm »
Is there a way to reference states from a state machine as enumerated values within an enumeration on a class diagram?

Similarly, is there a way I can utilise state diagram triggers (created via the state table tool) as operations within a class on a class diagram?
« Last Edit: April 30, 2012, 12:50:43 pm by coolfish »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: State Machine to Enumeration
« Reply #1 on: May 01, 2012, 08:36:48 am »
I'd look at writing a transformation.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: State Machine to Enumeration
« Reply #2 on: May 01, 2012, 09:13:15 am »
Quote
I'd look at writing a transformation.
Hmm, well for my last experience on trying a transformation from state machine to class models that didn't work very well. But this was with version 7.5.
The state macros were at least not available for transformation templates with this version. May be this has been worked out meanwhile.

Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: State Machine to Enumeration
« Reply #3 on: May 02, 2012, 08:52:02 am »
Maybe, but it will be able to create an enumeration from the states.