Author Topic: properties  (Read 12389 times)

kwasposer

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
properties
« on: July 03, 2020, 05:53:11 pm »
SYSML
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.

PeterHeintz

  • EA User
  • **
  • Posts: 965
  • Karma: +58/-18
    • View Profile
Re: properties
« Reply #1 on: July 04, 2020, 12:42:42 am »
Hi,
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.
Best regards,

Peter Heintz

kwasposer

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Re: properties
« Reply #2 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

« Last Edit: July 05, 2020, 08:32:11 pm by kwasposer »

kwasposer

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Re: properties
« Reply #3 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 :(


kwasposer

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Re: properties
« Reply #4 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



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: properties
« Reply #5 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.

q.

avi10000

  • EA User
  • **
  • Posts: 201
  • Karma: +0/-0
  • Programmer/Writer
    • View Profile
Re: properties
« Reply #6 on: November 19, 2020, 01:37:00 pm »
What EA version are you using, again?
The Paste box, looks different in more recent versions.