Book a Demo

Author Topic: EA Code Generation  (Read 4281 times)

robert song

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
EA Code Generation
« on: February 07, 2003, 04:08:56 pm »
Dear all,

I am reading a book about UML in Rational Rose. It says Rational Rose can generate skeletal code from component diagram, Who can tell me if EA can do it too? And the same question about the Sequence/Collabration Diagram.
Best Regards,

Robert Song

Takeshi_KOUNO

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: EA Code Generation
« Reply #1 on: February 08, 2003, 04:45:52 pm »
Hello Robert,

EA can make skeletal code from class diagram, but can't
make from Sequence/Collabration diagram.

EA can also synchronize source codes and class diagrams.
Please try using free evaluation version.

--
Takeshi KOUNO

Robert

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: EA Code Generation
« Reply #2 on: February 09, 2003, 10:35:30 pm »
Hi, Takeshi,

I have done generating code from class diagram and reversing coding from my application to EA. I can generate DDL coding from schema diagram as well. But exactly I haven't figure out sequence, collaboration, and component diagram coding generation using EA. My friend told me Rational Rose can do it. But...

Anyway, Thanks for your reply.

Robert

RichJ

  • Guest
Re: EA Code Generation
« Reply #3 on: February 11, 2003, 08:19:07 pm »
I'm pretty new at this, but I was thinking...

Collaboration and sequence diagrams represent object interactions for specific scenarios. Suppose there were three scenario's - would the code generated from these diagram types be highly redundant?

My perspective is that as I model a system with interaction-type diagrams like collaboration and sequence diagrams, I have the opportunity to think through the messages, arguments, return requirements, etc. for a scenario. Using EA I can add a new class operation on the spot (right clicking the association I made between objects, and choosing "add a message") if I did not have the foresight to define it when I created the class in the model. When I am satisified that the collaboration diagram is complete, all the required class features have been added to classes in the class diagram.

Thus, when I generate the code from the class diagram, the necessary support should be there to perform in all my scenarios.

Rich


Robert

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: EA Code Generation
« Reply #4 on: February 13, 2003, 10:22:58 am »
Hi Rich,

Thanks for your analysis.

Yes, the class operations can be automatically modified by your action at message in sequence diagram. It is very convenient for you completing class diagram when designing object interactions diagram.

But in my imagination, for example sequence diagram should be used to generate skeletal code by the messages sequence. If it can do that, the sequence diagram must be more useful.

Thanks all.

Robert