Book a Demo

Author Topic: C(OO) code gen. behavioral diagrams on EA Ultimate  (Read 2235 times)

apabil

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
C(OO) code gen. behavioral diagrams on EA Ultimate
« on: December 08, 2011, 11:42:55 pm »
Hi,

I'm trying the code generation from behavioral diagrams features of EA Ultimate. In particular, C(OO) code.

I'm able to successfully generate code from "CallOperation" actions but I'm not getting any code generated from actions like: "WriteVariable"; "ValueSpecification" and "WriteStructuralFeature" to name a few.

Particularly with "WriteStructuralFeature", I go to "Advance" | "Set Structural Feature" and select the Class attribute I'm interesting in. Then I go to "Properties" | "Advance" and entered the desired value in the "value" field. I've also have the Activity within the Class I'm generating and specified to an existing Class operation.

Here you can find an example:

https://docs.google.com/open?id=0BzfslFYR0mjEMjIyMzQwNDAtYzU3Ny00NWYwLWJhNzQtMjRmYWE5MDYxNDJm

So I'm expecting something like:

Code: [Select]
Boolean Message_setFormat(Message* this, char* format_p)
{
   this->format = format_p;
}

But instead I'm getting:

Code: [Select]
Boolean Message_setFormat(Message* this, char* format_p)
{
   return  NULL;
}

I wonder if I'm missing something or it is that code generation from such actions are simply not yet implemented or supported?

Thanks in advance for your comments.

apabil

flecko

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: C(OO) code gen. behavioral diagrams on EA Ulti
« Reply #1 on: December 16, 2011, 05:52:27 am »
I am having this same issue. I can't seem to get the behaviors in my functions to match what my diagrams show.

Unfortunately, I can't provide a copy of my model because it is much larger and proprietary.

Any help would be appreciated from the both of us, I'm sure!
Thanks.