Book a Demo

Author Topic: Entities as collections in sequence diagram  (Read 13078 times)

bouhor

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Entities as collections in sequence diagram
« on: April 04, 2010, 12:19:16 am »
Hi,
I have a question:
How to say, in the sequence diagram, that an entity is a collection (map ,set ..etc)
like this:


I'm using EA 7.5 corporate

bouhor

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Entities as collections in sequence diagram
« Reply #1 on: April 23, 2010, 05:16:29 am »
Help me please.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Entities as collections in sequence diagram
« Reply #2 on: April 23, 2010, 07:58:58 am »
Create a class with the name 'Map<Livre>'.

Set that as the classifier for your lifeline.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Entities as collections in sequence diagram
« Reply #3 on: April 23, 2010, 01:53:59 pm »
Actually the correct UML way would be to create a parametrized template class for you generic Map<T> class and instantiate it with the Livre class.
There is some support for this in EA, but I haven't tried to use it yet.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Entities as collections in sequence diagram
« Reply #4 on: April 23, 2010, 02:06:00 pm »
I made the suggestion that I did because I know parametrized class information will not show up on the sequence diagram.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Entities as collections in sequence diagram
« Reply #5 on: April 23, 2010, 02:14:24 pm »
Simon,

So that would just be a visualization issue then.
So it depends on what you want to do with the model.
If it is mainly for presentation purposes then the "map<Livre>" solution is the best.
If you want a technically correct model (to do code generation or something like that) you better go with the parametrized class solution.

Geert