Book a Demo

Author Topic: UML Question: documenting constants  (Read 3503 times)

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
UML Question: documenting constants
« 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>?
Cheers and best regards.

jaimeglz

  • EA User
  • **
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: UML Question: documenting constants
« Reply #1 on: November 08, 2002, 04:58:33 pm »
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
« Last Edit: November 09, 2002, 06:46:49 am by jaimeglz »