Book a Demo

Author Topic: statemachine code generation questions  (Read 3110 times)

jpapp

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-1
    • View Profile
statemachine code generation questions
« on: February 18, 2017, 03:03:16 am »
Hello!

I have qestions about statemachine generation and its settings.

What is the "new Statemachine template"? Why it is generating almost 1000 lines for the simplest statemachine as well?
If I use the legacy EASL template I get reasonable size, readable "nice code", but the possibilities are limited.
For eg: 
* If I create a concurrent statemachine, just one part is generated.
* If I create an ebbedded statemachine, it is not generated, just the upper level.

Is there a possibility to use the EASL template in these cases?
OR
Is there a possibility to use the "new template", but with much readable and smaller amount of code?

Thanks for your further answer!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: statemachine code generation questions
« Reply #1 on: March 06, 2017, 09:44:36 am »
The larger amount of code is the framework required for features like concurrent regions, history states etc. However, the code for the class containing your state machine should still be relatively simple.