Reputation: 21
Within a UML Class diagramm, I would like to define a class attribute as a simple structure. For example, I would like to define the Structure "Data" with the fields "old" and "new" in my class as:
Data.old:double
Data.new:double
I do not want to associate a "Data" class, since a simple structure is sufficient. Is this possible in UML 2.0?
Thanks, David
Upvotes: 2
Views: 118
Reputation: 3496
A clean solution would be to define a "Data" DataType with two attributes respectively named "old" and "new" typed as double. Then in your class you have to create an attribute typed with your create "Data" DataType.
Hoping it helps,
EBR
Upvotes: 1