Book a Demo

Author Topic: hiding the parent class name in embedded classes  (Read 5942 times)

David E Foster

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
hiding the parent class name in embedded classes
« on: August 12, 2010, 06:10:26 pm »
Hi there. This is my first post. I have just started using EA for domain modelling and so far so good however...

When I embed a class (e.g. Person) in a generalising class (e.g. Party) the displayed name is changed from 'Person' to 'Party:Person'. Is there anyway of getting the displayed name to not change?

Thanks

David
« Last Edit: August 12, 2010, 06:11:01 pm by dfoster9 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: hiding the parent class name in embedded class
« Reply #1 on: August 12, 2010, 06:12:22 pm »
David, you can't, but why in deus name would you want to embed Person in Party  :o, especially if Person is a subclass of Party.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: hiding the parent class name in embedded class
« Reply #2 on: August 12, 2010, 07:05:27 pm »
Hi David,

To echo Geert, there was a discussion (within the last month) on exactly this topic.  If you search for it you'll see the previous viewpoints.

If you find it, perhaps you could post a link here.

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

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: hiding the parent class name in embedded class
« Reply #3 on: August 13, 2010, 08:52:03 am »
And, users of the forum seem to have much more success in finding earlier posts using the left hand Search button at the top of the page, rather than the right hand Search field.
Best Regards, Roy

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: hiding the parent class name in embedded class
« Reply #4 on: August 13, 2010, 09:38:36 am »
Quote
And, users of the forum seem to have much more success in finding earlier posts using the left hand Search button at the top of the page, rather than the right hand Search field.
Verily, thine lips hath said it...

(Take the hint and make it clearer)

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

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: hiding the parent class name in embedded class
« Reply #5 on: August 13, 2010, 11:24:36 am »
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1280280983

Now how about we get an improved version/configuration of the BB that by default has a better search top right, and better defaults (eg for 6 months) for for search top right button, and allows more than 100 results to be returned :D
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

David E Foster

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: hiding the parent class name in embedded class
« Reply #6 on: August 13, 2010, 07:20:24 pm »
Example 2 here http://www.tdan.com/view-articles/9219 is what I am trying to achieve. I thought that this would be achieved by 'embedding' in EA terms (I assume that have I got that wrong?).
« Last Edit: August 13, 2010, 07:35:51 pm by dfoster9 »

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
GGRRRRRRRRRRRRRRRGGGGGHHHH!*
« Reply #7 on: August 15, 2010, 07:23:19 pm »
* Sound of awakening dinosaur

David,

David Hay is a very very clever man who, some time before the last ice age, provided a vary convincing argument that UML and data modelling are not the same thing. In short, that a bicycle is not a fish.

The article you cite seems to be arguing that a bicycle could be a fish if it had gills and fins.  It is not, IMNSVHO, a great deal of use.  Fishes are fishes and bicycles are, well, a subclass of two wheeled human propelled conveyances.

The diagram is illustrative only in his argument for the need for a data domain modelling technique suitable for non-technical understanding of a particular domain.  It is not an "accepted" use of EITHER static data structure modelling, nor of a UML information domain.  While he may be correct in specifying a requirement for such a modelling technique, the article does not specify a way that the current status of UML can achieve such a model.

The picture is not the model.
The model is not the system (nor the data).
A fish is not a bicycle.

.... going back to sleep now...
bruce

(b.t.w. Did you know that Spectrum (or alternatively "The Incredible Murtceps" was possibly one of the greatest bands that ever graced this planet  :) )
« Last Edit: August 15, 2010, 07:25:13 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: hiding the parent class name in embedded class
« Reply #8 on: August 16, 2010, 03:29:00 pm »
David,

I'm afraid you indeed "have it wrong" ;) and that fact alone is probably a reason why not to use the notation suggested by the author of that article.

Onto the subject, the author is actually talking about regular Generalization relations between Party and Person, but he is just drawing them onto each other on the diagram. Their location on the diagram doesn't say anything about their location in the model.

If you really want to achieve this with EA then you just need to drag the boxes on the diagram on top of each other, without touching the location of the classes in the model.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: hiding the parent class name in embedded class
« Reply #9 on: August 16, 2010, 06:40:58 pm »
Quote
[size=18]...[/size]
If you really want to achieve this with EA then you just need to drag the boxes on the diagram on top of each other, without touching the location of the classes in the model.
[size=18]...[/size]
But further to what Geert says, and to take issue (even with David Hay), you mustn't do this on a Composite Structure Diagram...

"A composite structure diagram is a larger rectangle, with its components contained as rectangles within it".  It displays composition, NOT generalization.  It's one of the few UML diagrams where location of items within other items is meaningful - and it's meaning is NOT sub-typing.

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

David E Foster

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: hiding the parent class name in embedded class
« Reply #10 on: August 18, 2010, 01:02:28 am »
Thank you Geert,

Turning off 'support for composite objects' had the desired effect. I am presenting a domain diagram that is for presentation to non-technical end-users and so ease-of-understanding is my paramount concern over technical notation correctness. I appreciate your comments though. :)