Book a Demo

Author Topic: Enumeration in t_object & t_objecttypes  (Read 3377 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Enumeration in t_object & t_objecttypes
« on: September 11, 2008, 06:24:59 pm »
Do Enumeration t_objects exist any more?  There is an entry in t_objecttypes for them, but when you drag an Enumeration from a tool box you get a stereotyped class in t_object.  The UML 2.1.2 Superstructure (formal) Specification defines such a distinct beast:

"7.3.16 Enumeration (from Kernel)
An enumeration is a data type whose values are enumerated in the model as enumeration literals."

My reading of that a UML Enumeration is not a Class, but a distinct object type.  My reason for asking is that I want to subtype Enumeration to allow me to create multivalued Sets of Literals.  I need to be able to set the "isLiteral" atttribute to get EA to behave the way I want.

Can anyone (preferably a Sparxian) confirm or deny whether they exist any more?

If they don't; it might be an idea to remove them from the t_objecttypes list.

Thoughts?
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Enumeration in t_object & t_objecttypes
« Reply #1 on: September 11, 2008, 10:55:20 pm »
AFAIK they continue to exist as classifiers. I'd have to look - I don't have time now - to be absolutely sure.

So too for datatypes, which EA also handles in an (incorrect) legacy (I think EA legacy, not UML legacy) fashion.
No, you can't have it!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Enumeration in t_object & t_objecttypes
« Reply #2 on: September 11, 2008, 11:07:08 pm »
Enumeration is a classifier, and descends from DataType (also a classifier).

UML 2.1 Superstructure [07-02-03 or 07-02-05 (with and without change bars, respectively)] define this in section 7.3.16. Note that the shape is shown with the «enumeration» keyword (not the stereotype) above the name. The operations compartment may optionally be suppressed. Diagram 7.41 provides an example of the notation.

FWIW also review DataType in section 7.3.11 and diagram 7.36.

David

No, you can't have it!