Book a Demo

Author Topic: Packaging component  (Read 25966 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Packaging component
« on: March 08, 2024, 04:44:33 am »
For some reason I started playing with EA again (poor me). I remember having looked at Packaging components and thought "how weird". Now, for my Python it seemed that putting classes into it of a file forming a Python package would be a good use - I thought. Now, these partially behave and look like a package. And I noticed that some of them appar as normal package icon in the browser while others look like a component. It's also not possible to alter a package into a package comonent (via the Type ellipsis). This concept has been around for some time but still the banana did not get ripe.

I will just foget about that scrap and use normal component elements. Just little work now...

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Packaging component
« Reply #1 on: March 08, 2024, 09:22:25 am »
For some reason I started playing with EA again (poor me). I remember having looked at Packaging components and thought "how weird". Now, for my Python it seemed that putting classes into it of a file forming a Python package would be a good use - I thought. Now, these partially behave and look like a package. And I noticed that some of them appar as normal package icon in the browser while others look like a component. It's also not possible to alter a package into a package comonent (via the Type ellipsis). This concept has been around for some time but still the banana did not get ripe.

I will just foget about that scrap and use normal component elements. Just little work now...

q.
I feel that the UML group would use the "streaker's defence"[1] when describing Packaging Components these days.  In my view, they're a waste of time and energy (as you, also, have found).

Has ANYBODY on the forum used them successfully?  How?  Why?

HTH,
Paolo

[1] "It seemed like a good idea at the time, your honour"
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Martin Merkel

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Packaging component
« Reply #2 on: April 27, 2026, 04:36:10 pm »
Not that I would claim that I've successfully used or understood packaging components, but the other day I've come across a scenario where they might help.
I'm working on a model for communication systems that attempts to follow the OSI layering structure. At the application layer I have multiple alternative communication profiles that I've put into components, with each of the protocol entities modeled by a class. But now I considered assembling the corresponding protocol service descriptions and the protocol descriptions into packages, not to clutter my project structure. The service description contains interfaces etc., the protocol descriptions sequence diagrams. However I cannot put a package below a class, nor a component. I can on the other hand put them under a packaging component.
Anyway, I figured out that I cannot change the type of a component to packaging component, the three dots won't let me do that, so I have to rebuild the structure.
Martin

Ps: I cannot add a port or an interface to the packaging component as for classes and components though, probably because it's a package  :(
« Last Edit: April 27, 2026, 05:15:52 pm by Martin Merkel »