Book a Demo

Author Topic: Creating overlapping subclasses in Sparx EA  (Read 3918 times)

AnnaC

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Creating overlapping subclasses in Sparx EA
« on: November 07, 2015, 09:31:46 pm »
How can I indicate that subclasses are overlapping (an object may be an instance of more than one of the sub classes of a parental class)?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Creating overlapping subclasses in Sparx EA
« Reply #1 on: November 07, 2015, 10:55:00 pm »
I guess by classifying it with a class that inherits from those multiple other classes.

q.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Creating overlapping subclasses in Sparx EA
« Reply #2 on: November 09, 2015, 08:04:25 pm »
Have a look at Generalization sets

Right-click the Generalization connector
Select Advanced
Select Generalization Sets
Select New...


This may provide what you are  looking for

Alternatively simple add a constraint to your diagram, complete it accordingly and then attach to the relevant Generalization connectors.

Phil
Models are great!
Correct models are even greater!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Creating overlapping subclasses in Sparx EA
« Reply #3 on: November 10, 2015, 10:44:56 am »
Quote
Have a look at Generalization sets

Right-click the Generalization connector
Select Advanced
Select Generalization Sets
Select New...


This may provide what you are  looking for

Alternatively simple add a constraint to your diagram, complete it accordingly and then attach to the relevant Generalization connectors.

Phil
Generalizaation Sets ARE the way to go...  You need to indicate that they set is NOT disjoint.

We think the idea of "sets" is SO useful that we have generalized it (pun intended) to include ArchiMate Association Sets (the so-called Grouping relationship), Aggregation Sets, Composition Sets, and Nesting Sets.  We've also created shapescripts to surface the Tagged Values (NOT provided by Sparx) that indicate whether the set is covering and/or disjoint and also the size of the base set.  This allows us to tell on a diagram if we are seeing the full set or not.

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