How to model "target day" in UML Classdiagrams

Posted by Tobiask on Stack Overflow See other posts from Stack Overflow or by Tobiask
Published on 2010-03-22T10:16:44Z Indexed on 2010/03/22 11:31 UTC
Read the original article Hit count: 435

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about uml-modeling