Book a Demo

Author Topic: Code-Generation of Iconix diagramms?  (Read 2373 times)

wolfgang.uhr

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Code-Generation of Iconix diagramms?
« on: May 04, 2006, 02:46:32 am »
Hello

My next problem. I have a domain-modell an I can generate some code (a class sceleton). Then I have a small use case modell and based in a Domain-Modell-Class and a use Case I've created an iconix-robustnes-diagramm (http://applikationssoftware.de/EA/SmallDemo/index.htm).

This robustness diagramm contains a note-object, an object instance of an actor a boundary-control "AdminDialog", the entity object "PrinterSearchEnginge" and an object instance of the Domain-Modell class "PrinterList".

In the Iconix-robustness-sequence-diagram, I've inserted some messages of between thoose objects.

Normally - in my opionion - thoose "messages" should be added as a methods to thoose objects, isn't it?

Best regards
Wolfgang

thomaskilian

  • Guest
Re: Code-Generation of Iconix diagramms?
« Reply #1 on: May 04, 2006, 10:54:48 am »
You are right, Wolfgang. However, it does not make much sense to add operations to objects since they just demonstrate the use of the involved classes. Just leave it as it is. That is, the messages denote the operations called in the objects. Later, when you come to design the classes, you have to add these operations to the classes.

Just to save some work, instantly create according classes in your design model and create instance classifiers (context menu of the object: Advanced/Instance...). Now, if you put the operations in the class, you will be able to pick these from the drop down when creating messages.
« Last Edit: May 04, 2006, 10:55:33 am by thomaskilian »

wolfgang.uhr

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code-Generation of Iconix diagramms?
« Reply #2 on: May 04, 2006, 12:47:12 pm »
Quote
Just to save some work, instantly create according classes in your design model and create instance classifiers (context menu of the object: Advanced/Instance...). Now, if you put the operations in the class, you will be able to pick these from the drop down when creating messages.


Thank you very much, but in this case the code generation does not work for a complete package, in this case all classes in "Domain-Modell". Then I can only synchronize instance by instance.

And furthermore: If the package name and the class name is "Domain-Modell" I get an error in code line 1, if I create the sources 2nd time. If I change the name to "DomainModell" (package and path and new sources) then EA crashes.

Best regards
Wolfgang

thomaskilian

  • Guest
Re: Code-Generation of Iconix diagramms?
« Reply #3 on: May 05, 2006, 06:15:13 am »
Quote

Thank you very much, but in this case the code generation does not work for a complete package, in this case all classes in "Domain-Modell". Then I can only synchronize instance by instance.

You always can generate code for all classes in a package. Use the context menu for a package. When then code gen window pops up, you can auto-generate the path for the files (use the check box).
Quote
And furthermore: If the package name and the class name is "Domain-Modell" I get an error in code line 1, if I create the sources 2nd time. If I change the name to "DomainModell" (package and path and new sources) then EA crashes.

Best regards
Wolfgang

What do you mean with crash? What kind of crash?

wolfgang.uhr

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code-Generation of Iconix diagramms?
« Reply #4 on: May 05, 2006, 07:46:10 am »
Quote
What do you mean with crash? What kind of crash?


I have this dialog an click on "Generate"

http://applikationssoftware.de/Sonstiges/EA_Error/GenerateCode.jpg

Then I got this error message:

http://applikationssoftware.de/Sonstiges/EA_Error/ErroMessage.jpg

And I got this error file:

http://applikationssoftware.de/Sonstiges/EA_Error/f12b_appcompat.txt

Best regards
Wolfgang

thomaskilian

  • Guest
Re: Code-Generation of Iconix diagramms?
« Reply #5 on: May 07, 2006, 11:20:05 am »
Hi Wolfgang,
I suspect you modified the code gen templates. If you bring in some endless recursion you're lost. However, such kind of error should be reported to Sparx. Just send the pointer to this thread using Sparx bug report page.