Author Topic: generate from behavioral models  (Read 3039 times)

kimballjohnson

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
generate from behavioral models
« on: June 25, 2011, 10:40:11 am »
Hi,

As usual, I'm having trouble finding the specific instructions needed to do some of the cooler things in EA.

I'm trying to track down the steps to generate a class from a state machine diagram.

My goal is to actually design code with a state-ful mentality rather than following the canonical 'stream of consciousness' zone-ful method we usually get stuck in.

However, in the EAExample.eap, I cannot find any statem machine or state that enables the 'generate current element' option in any of the locations where this menu item is displayed.

Nor can I find any example in the learning center that actually performs this step.

So I can find references to the feature but none to the precise requirements that make it work.

Please tell me what I'm missing.

Thanks,

Kimball

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: generate from behavioral models
« Reply #1 on: June 27, 2011, 08:58:26 am »
You still need a class to generate. The State Machine lives under the class.

See Project Models.Systems Engineering.Implementation Model.Software.C#.DataProcessor.SearchExternalMedia.

kimballjohnson

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: generate from behavioral models
« Reply #2 on: June 27, 2011, 09:03:02 am »
Ok, I believe you.

However, my confusion comes from not understanding how one is supposed to 'generate the class from the state machine' if the class has to be in existence first, and especially if the state machine has to be created 'under' the class.

THis is very chickeny-eggish to me.

Thanks,

Kimball

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: generate from behavioral models
« Reply #3 on: June 27, 2011, 01:39:42 pm »
Sorry for the misunderstanding, I assumed you wanted to generate the code for a class.

A class and a state machine are complementary. One describes structure, one describes behavior. You don't/can't generate structure from behavior, but you can specify the behavior for a class.

kimballjohnson

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: generate from behavioral models
« Reply #4 on: June 27, 2011, 01:47:00 pm »
Ok, I'll look at the example you mentioned.

But I'm getting dizzy.

I fully expect to see an example in which all the artifacts are previously genarated and the process of generation is not displayed.

I am working my way through the examples with the goal of adopting all these features as standard methodologies in my company's practice.

Therefore I have spent quite some time trying with only modest success to cull from the examples, the learning guid and the help file what should be the complete process.

So please do not be surprized if I come back tomorrow with some more detailed questions about this.

THanks,

Kimblal