Book a Demo

Author Topic: Code Genrate with Region, Folk, Join.  (Read 5083 times)

kim

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Code Genrate with Region, Folk, Join.
« on: June 24, 2013, 04:13:05 pm »
i tested that feature.

but EA does not generate code with region, folk, join.

i saw EA website said EA can generate behavior code. but is it lie?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #1 on: June 25, 2013, 08:32:43 am »
It doesn't support every construct available in UML for Activities or State Machines, but it certainly does support generating behavioral code.
« Last Edit: June 25, 2013, 08:33:05 am by simonm »

kim

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #2 on: June 25, 2013, 11:20:54 am »
is possible catch in EA code template of statemachine's region, folk?

and can i extend that features?
« Last Edit: June 25, 2013, 11:29:38 am by kim »

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #3 on: June 25, 2013, 12:20:32 pm »
Quote
... of statemachine's region, folk ...

BTW: It's common folklore to call it fork (following the famous Harald Lesch), not folk!

couldn't resist,
Günther
« Last Edit: June 25, 2013, 12:23:05 pm by g.makulik »
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

kim

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #4 on: June 25, 2013, 12:27:08 pm »
Quote
Quote
... of statemachine's region, folk ...

BTW: It's common folklore to call it fork (following the famous Harald Lesch), not folk!

couldn't resist,
Günther

sorry my mistake. thank you.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #5 on: June 25, 2013, 09:05:55 pm »
Or maybe you're from somewhere in China/Japan where it's known that r and l are hard to distinguish :-)

q.

P.S. On your original question: the code gen is completely build-in to EA and has no bells nor whistles. It's all silent. The only way: write your own code generator via automation.
« Last Edit: June 25, 2013, 09:09:56 pm by qwerty »

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #6 on: June 26, 2013, 11:58:45 am »
Not sure about regions, but in terms of Forks and Joins see the EAExample.eap model:
Project Models.Systems Engineering.Implementation Model.Software.C#.DataProcessor.doAppendToBuffer

You can do a Code Generation on the parent Class and see the results of the Fork/Join statements.

P.s. Qwerty - I assume you know the code generation templates are user-editable: Tools | Source Code Generation Templates

kim

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #7 on: June 26, 2013, 05:57:23 pm »
is possible code generation templates edit without EA.

where is code generation templates file?

or is possible change code template editor's background color?
« Last Edit: June 26, 2013, 06:44:32 pm by kim »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #8 on: June 26, 2013, 07:36:28 pm »
Quote
P.s. Qwerty - I assume you know the code generation templates are user-editable: Tools | Source Code Generation Templates
I was "aboard the wrong ship" as we say in Germany when posting that :-[

q.

kim

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #9 on: June 28, 2013, 04:07:50 pm »
Quote
is possible code generation templates edit without EA.

where is code generation templates file?

or is possible change code template editor's background color?

anybody know about this?

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #10 on: June 28, 2013, 05:01:22 pm »
Start reading here:

http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/codetemplates_2.html

I'm not sure about changingthe code template editor background specifically, but you have a number of options for customizing the overall appearance of EA. See:

http://www.sparxsystems.com/enterprise_architect_user_guide/10/getting_started/visualstyles.html

Yes, you can create code templates somewhere else and then import them into EA - that is also in the Help.
Best Regards, Roy

kim

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Code Genrate with Region, Folk, Join.
« Reply #11 on: June 28, 2013, 05:14:02 pm »
thank you very much.