Book a Demo

Author Topic: Multiplicity on Tagged Values  (Read 2850 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Multiplicity on Tagged Values
« on: August 12, 2013, 09:05:14 pm »
Hi all,

I have just added an attribute to a stereotype:
+ result : double [0..*]
As I found in the help, this is treated internally as tagged value. Additionally, I understand this attribute as an array of doubles. When it comes to fill in this attribute (by hand or by addin) I just don't know how to perform the task of adding values to it.
Actually the ordinary approach through the TaggedValue.Value field is not appropriate since it is a string.
So this boils down to the questions:

1) Does EA in any sense care about the datatype that is assigned to the tagged value (maybe by assigning the doubles in a particular way, e.g. a semicolon separated list) or is it up to me to organize the TaggedValue string in a way fitting to my needs?

2) Which consequences does it have to set the multiplicity field for tagged values?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Multiplicity on Tagged Values
« Reply #1 on: August 12, 2013, 09:22:27 pm »
EA will not include any checking for that. Maybe you could hack that with an add-in. The help topic Predefined Structured Types does also not cover a list of float values. Check the AddinBroadcast explanation right there.

q.
« Last Edit: August 12, 2013, 09:24:10 pm by qwerty »