Book a Demo

Author Topic: How to get the psuedotype of Initial/Final StateNode elements  (Read 4871 times)

Tim Twe

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
How to get the psuedotype of Initial/Final StateNode elements
« on: October 16, 2016, 09:13:07 pm »
Hi,

A state diagram has Initial and Final nodes. These nodes are differentiated by Psuedo state types.  How do I get that type using the interface?

An Initial element is an Element.  I can get the type which returns StateNode but I cannot differentiate Initial from Final using anything other than the name, which would be incorrect.

What is the correct way to get the psuedo type of the element?

Thanks,
-Timothy

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to get the psuedotype of Initial/Final StateNode elements
« Reply #1 on: October 17, 2016, 01:56:01 am »
SubType is either 3 or 4.

q.

Tim Twe

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: How to get the psuedotype of Initial/Final StateNode elements
« Reply #2 on: October 17, 2016, 06:09:46 am »
Fantastic.  Thank you!