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...