Book a Demo

Author Topic: Operations behaviour without comment  (Read 5097 times)

RenatoMM

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Operations behaviour without comment
« on: September 05, 2002, 02:24:03 pm »
Hi All,
  Is there a way to get the text put on operations behaviour gennerated without the "\\"s? I'm trying to find a way to do a kind of round-trip code engineering... It would be nice. ;)

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Operations behaviour without comment
« Reply #1 on: September 06, 2002, 04:11:06 am »
I think you will run into other problems apart from the "//" issue. As far as I can tell from my own experiments with C++ generation and reversing, the comments from "Behaviour" are neither updated when you make changes in EA after initial generation, nor are they updated from changes made in the external editor when reverse engineering.

I am interested in this subject, and C++ code engineering with EA in general, so don't hesitate to post anything you find out in this area, that may be interesting.
-
Mikkel

RenatoMM

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Operations behaviour without comment
« Reply #2 on: September 06, 2002, 05:23:51 am »
Yes, I noticed that... :(. Is that a reported bug or something? It would be a good start to true code engineering with EA. Other things, like building system behaviour with collaboration messages could be considered too.
But I still considering EA a great tool and the fact that it still in a very active developping phase make me encouraged.

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Operations behaviour without comment
« Reply #3 on: September 06, 2002, 05:29:30 am »
I think that real code generation/roundtripping is just one of Sparx Systems lower priorities. Makes sense in a way, because it is such a complicated subject.
Anyway, my opinion is that the code engineering areas that should get attention first are those that relate directly to model elements. I don't mind having to fill out function bodies in my code editor, but I like those parts of the program that are described in my model to be kept automatically up to date with the code and vice versa.

RenatoMM

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Operations behaviour without comment
« Reply #4 on: September 06, 2002, 05:51:12 am »
For sure, mbc. But if we get the bugs fixed, and some minor implementations, like the struct code generation you mentioned, we could start using it more and more. But actually we are in EA miles away from true code roundtripping.
--
Renato

sparks

  • EA Administrator
  • EA User
  • *****
  • Posts: 691
  • Karma: +4/-2
    • View Profile
Re: Operations behaviour without comment
« Reply #5 on: September 06, 2002, 06:28:55 am »
Hello,

To date our position of code engineering has been to work without 'code markers', mainly because we feel that they make the code very hard to read and follow.  However the problem is that true round tripping is really only possible with code markers and/or exclusive access to the source code ... so that model changes in EA can be reflected in source code immediately.  

Based on user feedback we are considering limited use of markers to improve the situation - but are not currently looking at storing source in EA or performing 'live' updates in real time.

Hope this explains our position and the reason why EA functions as it does.

Paul Mathers

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Operations behaviour without comment
« Reply #6 on: September 06, 2002, 06:36:00 am »
I had already guessed your marker policy, and I understand it well. However, I also agree that limited use of markers would make a lot of enhancements possible (such as deletion and renaming of attributes and operations).
Some editors (e.g. CodeWright) have a "selective display" feature, which can hide lines based on regular expressions. So if your markers had a common trait, Codewright could hide the markers lines for easier readability, and display them when they are necessary for correct editing.

Some smaller things, like array attributes and struct code generation (see my other posts) could still be made to work without markers.