Book a Demo

Author Topic: Generalization Set in UML 2.0  (Read 5796 times)

mogarick

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Generalization Set in UML 2.0
« on: May 15, 2005, 10:28:07 am »
Hi,
I was wondering how can I model Generalization Sets in EA.

As you know this refers to the fact that a class could have different types of clasification, for instance, a Person could be Man o Woman, but also could be a Student or Profesor, etc..

UML 2 allows generalization set to group the diferent types of clasification, but a I don't know how I can model this in EA.

Thank you for your help

Greetings

Ricardo Montoya

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Generalization Set in UML 2.0
« Reply #1 on: May 15, 2005, 04:00:48 pm »
At the moment the best you can do to represent Generalization Sets is to attach a note or constraint to each individual generalization (Modify: that's one note, multiple attachments). Full support is on our to do list.
« Last Edit: May 15, 2005, 06:28:00 pm by KP »
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Generalization Set in UML 2.0
« Reply #2 on: May 15, 2005, 06:58:30 pm »
If you look in the past topics, you'll find I've also queried the lack of GeneralizationSets and PowerTypes.  My recommendation is to use constraints on the Generalization.  By using a single word or phrase (such as "applicability" or whatever the set name) as the constraint, it violates OCL syntax and thus can be formally detected as a Generalization set in the interim.

When EA finally supports them, you can (or we can) create an automaton (maybe using the new transformation process) to convert all Generalization Constraints of a particular form into GeneralizationSets.

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