Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: kwasposer on July 03, 2020, 05:53:11 pm

Title: properties
Post by: kwasposer on July 03, 2020, 05:53:11 pm
I ve got a block_1 in a BDD. Added some propertie_1 to it by drag&drop.

Now i created an IBD, enable the visibility in Features/Parts and Properties.

Now my propertie_1 is visible as "box" insight the block_1. Than I delete them, because I want them to be visible as list below :properties. This function is enable in the Compartment Visibility of block_1.

1) What I dont understand, that this is not working all the time? I do not have this Compartment Visibility :properties available as option. What can I do? I even restartet my model, which cannot be a solution anyway.

2) I added an Initial value to the propertie_1. Can I have a list of strings visible in the Initial_value? I tried with <memo>, but did not help in this case.
Title: Re: properties
Post by: PeterHeintz on July 04, 2020, 12:42:42 am
if you expect to see the property as list in the frame of you IBD, this will not work. The compartment visibility relates the blocks shown on a BDD.
The same is valid for the initial value. This you will see in the BDD only.
Title: Re: properties
Post by: kwasposer on July 05, 2020, 08:21:28 pm
Thanks, some examples

1) I am not able to list these Properties as shown in my bottom picture. Or this option :properties is not available. Only after some restarts of EA, it will be. I do not want them as box visualized. It is the same block, same properties same procedure:



2) I m looking for a solution two add two properties called subscribe: String1, String2

Title: Re: properties
Post by: kwasposer on July 05, 2020, 08:52:11 pm
Now, somehow it works. Magic - I dont know, why.

But still my <<publish>> property is not visible, even so :properties is enabled in the compartment view. You need lots of patience to work with EA :(

Title: Re: properties
Post by: kwasposer on July 12, 2020, 08:06:09 pm

what is  the difference between Property (Part) and Property and Attribute? Unfortunately all of this is not explained here C:\Program Files (x86)\Sparx Systems\User Guide\modeling\pastingfromthetree.html

Title: Re: properties
Post by: qwerty on July 12, 2020, 08:28:25 pm
An attribute is something resulting in a piece of memory. It can be a pointer (reference to an object) or some primitive like an integer. A property is something that can be either a simple attribute or something derived from a class operation (you will have these property getter/setter operations). A part is more tricky. It represents an instance of a class. Parts are used to show ports defined for a class. These ports are then called slots. Basically you can achieve the same result with a simple property. But parts are bound stronger to the class containing them (those are mine!).

For details you need to read UML 2.5 pp. 184 where you also can find a couple of examples.

Title: Re: properties
Post by: avi10000 on November 19, 2020, 01:37:00 pm
What EA version are you using, again?
The Paste box, looks different in more recent versions.