How to model "target day" in UML Classdiagrams
- by Tobiask
Hi there,
I want to describe the following situation in an UML Classdiagram:
A day, on which a newspaper is send to a customer. This day could be sth. like "every friday" or "every first day of a month".
My idea to represent this in a UML Classdiagram:
-targetDay:Integer
-targetDayGrid:Enumeration
targetDay would be sth. like "1" (for monday) oder "5" (for friday) or it could be "1" for the first day of the month or "10" for the 10th day of the month.
targetDayGrid is an enum: weekly, monthly.
So the enum sets the semantic meaning of the number in targetDay. I´m not happy with this, do you know any other solution to represent my problem? Or do you think my solution is okay?