Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to specialize the aggregation for code-generation
icon5.gif  How to specialize the aggregation for code-generation [message #520867] Mon, 15 March 2010 11:52 Go to previous message
Konstantin is currently offline Konstantin
Messages: 8
Registered: March 2010
Location: Germany
Junior Member
Hi all!

I'm not so experienced in using of UML. I've learned how to read it, but I'm not sure how to use it for model driven development.

Assuming we have to model the Sudoku field generator and we have noticed, that we have two following classes: SudokuField and LineConstraint.
The LineConstraint instances cannot exist without a bound SudokuField. So we add an association with one composite end.
Each SudokuField is associated with severally LineConstraints.

After a while we'd like to produce the source code for it and to get a field with List<LineConstraint> type in the SudokuField class. But we don't want to remove the association with the LineConstraint.

Do someone have idea how to express this?

I could imagine that the association-class could be the right choice. The association-class could be the List_LineConstraint with the template binding connection to the List<E>. And the association with class should be set as specification of the composite association...

I'm glad to see your opinions.
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Storing aggregation property in .uml file
Next Topic:How to specialize the aggregation for code-generation
Goto Forum:
  


Current Time: Sat May 18 12:49:50 EDT 2013

Powered by FUDForum. Page generated in 0.01723 seconds