Book a Demo

Author Topic: How to make a Generalization on Associations?  (Read 4172 times)

mattulla

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to make a Generalization on Associations?
« on: August 11, 2006, 12:56:26 am »
Hi All,

in the specification of UML 2.0 it is allowed to generalize associations. I tried that out with the ea, but didn't have any succeed. Does anybody know how to do that?

Best Regards
mattulla
« Last Edit: August 11, 2006, 12:58:26 am by mattulla »

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: How to make a Generalization on Associations?
« Reply #1 on: August 11, 2006, 02:14:14 am »
Superstructure says:
Notation
Any association may be drawn as a diamond (larger than a terminator on a line) with a solid line for each association end
connecting the diamond to the classifier that is the end’s type. An association with more than two ends can only be drawn this way.

Jan 'Bary' Glas

mattulla

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to make a Generalization on Associations?
« Reply #2 on: August 11, 2006, 02:40:50 am »
Do I have to use the big Diamonds. I found in a UML-book another solution. I will post two pictures, one is my original and the other one I've got edited with paint. It is like I want to have it.




How to insert a picture correctly? I can't see them on my screen.
« Last Edit: August 11, 2006, 03:05:46 am by mattulla »

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: How to make a Generalization on Associations?
« Reply #3 on: August 11, 2006, 02:51:09 am »
Quote

How to insert a picture correctly? I can't see them on my screen.

You must upload the pictures on Internet somewhere, I use free upload server http://imageshack.us/
Jan 'Bary' Glas

mattulla

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to make a Generalization on Associations?
« Reply #4 on: August 11, 2006, 03:06:12 am »
Quote
You must upload the pictures on Internet somewhere, I use free upload server http://imageshack.us/



Thanks it works. The picture are a little bit small, but I hope its possible to see something on them

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: How to make a Generalization on Associations?
« Reply #5 on: August 11, 2006, 03:23:22 am »
Sorry, I cannot help you. My way of your example would be:

which is following advice from UML Superstructure to use derived roles
Jan 'Bary' Glas

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How to make a Generalization on Associations?
« Reply #6 on: August 11, 2006, 05:40:10 am »
Quote
Sorry, I cannot help you. My way of your example would be:

which is following advice from UML Superstructure to use derived roles
mattulla,
In this case "Bary" is right.  If the roles are the some, then you you have derivation by implication.  The /layer - /handler association is implied by the two Generalizations of PipelineLayer and PipelineLayerHandler.

On the other hand, there is a place for actual specialization of Association.  Both of you have indicated the possible renderings.  "Bary's" form is the only one currently do with EA.  If you search the forums you'll see some pronouncements of mine on how the Association "lozenge" is an AssociationClass.  So both renderings are equivalent.

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to make a Generalization on Associations?
« Reply #7 on: August 13, 2006, 02:58:19 pm »
In addition, version 6.5 of EA allows the specification of association specialisations where one or both ends either "redefines" or "subsets" the corresponding end of the parent association.