Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: CJ on November 08, 2002, 06:00:54 am
-
G'day folks,
In UML, would the best way to document/model constants be to group them into classes stereotyped as <enumeration>?
-
Hi again, Jason.
Best anwer I can think of is "yes, but be careful". Ennumerations are great for such sets as days_of_the_week = {Mon,Tue,Wed...} . There are other constants that I would consider as attributes (which would be object instances when they are play the role of messages) of ordinary classes. This, for instance, is a "not so k constant":
value_added_tax_rate:accounting_params
Hope it helps.
Jaime