I want to describe the following situation in a UML Classdiagram:
The day the newspaper is sent to the client. This day could be. for example, "every Friday" or "every first day of the month."
My idea is to introduce this in a UML Classdiagram:
-targetDay:Integer
-targetDayGrid:Enumeration
targetDay will be sth. for example, “1” (Monday) or “5” (Friday), or it can be “1” on the first day of the month or “10” on the 10th of the month.
targetDayGrid is an enumeration: weekly, monthly.
Thus, the enumeration sets the semantic value of the number in targetDay. I am not happy with this, do you know any other solution to represent my problem? Or do you think my decision is ok?
source
share