Book a Demo

Author Topic: Operations in instances of Components  (Read 21840 times)

RonnyPutz

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Operations in instances of Components
« on: November 17, 2022, 02:51:18 am »
Hi

In my current high level component diagrams, I had to use multiple instances of one component, to visualize a data flow.
For this I created a new instance of the original component by dropping it on the diagram and selected "add as instance". I created data flows etc and everything worked fine.
I also wanted to create a sequence diagram, trying to explain the call sequencens. There I figured out that in the messages I can select operations, I have created in the original component. But these methods are not available in the instances of the component.
Shouldnt the methods be also avialable there?

If I drop the component into the sequence diagram and add it there as lifeline. The methods are available.
Means:
- an instance created in a component diagram, does not support the methods in sequence diagram.
- an instance created in a sequence diagram, does support the methods in sequence diagram.

This sounds odd to me. I am using EA 15.2

Richard Freggi

  • EA User
  • **
  • Posts: 498
  • Karma: +18/-7
    • View Profile
Re: Operations in instances of Components
« Reply #1 on: November 17, 2022, 06:55:39 pm »
Don't use component diagrams to visualized data flow.  That's not what they are for.
Study interaction diagrams.  This forum has a few posts about good books to learn UML.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Operations in instances of Components
« Reply #2 on: November 17, 2022, 09:16:18 pm »
Don't use component diagrams to visualized data flow.  That's not what they are for.
Study interaction diagrams.  This forum has a few posts about good books to learn UML.
Wot 'e sed!

Plus, when you need multiple copies of an item on a diagram, use Virtual Connector Ends (VCEs).  Post available on the forum, also.

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

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Operations in instances of Components
« Reply #3 on: November 18, 2022, 09:17:32 pm »
Don't use component diagrams to visualized data flow.  That's not what they are for.
Study interaction diagrams.  This forum has a few posts about good books to learn UML.
It depends on what these flows represent. If they represent Information Flows, I don't see much of a problem using them in a high-level component diagram, they are certainly a permitted relationship between components.

Interaction diagrams are great but not sure I will call them a high level diagram.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Operations in instances of Components
« Reply #4 on: November 18, 2022, 09:25:08 pm »
He's talking about SDs where instances of components are used. Not so sure about this, but I use SDs only for class instances, not for component instances.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Operations in instances of Components
« Reply #5 on: November 18, 2022, 09:34:10 pm »
He's talking about SDs where instances of components are used. Not so sure about this, but I use SDs only for class instances, not for component instances.

q.

That shouldn't be an argument, since a Component is a specialization of Class.

Geert

RonnyPutz

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Operations in instances of Components
« Reply #6 on: November 19, 2022, 01:59:05 am »
Hi

Thanks for the hints.
Simple said - what I wanted to represent is the relation / information between 2 instances of the same servie, which i drafted as component.


>That shouldn't be an argument, since a Component is a specialization of Class.
I also agree to that. And that was exactly also my assumption, that a intance of a coponent behaves like an instance of a class. Means I would assume i see all the methods of the parent.

Regards