Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: wolfgang.uhr 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
-
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.
-
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
-
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).
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?
-
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
-
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.