Book a Demo

Author Topic: Collection class?  (Read 3607 times)

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Collection class?
« on: September 12, 2007, 03:16:41 am »
Is there any comprehensive help available how to use the Class -> Attributes|Detail|Collection -feature of the program?
The help file doesn't tell much of the very purpose of that feature, or how is it supposed to make my life easier.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Collection class?
« Reply #1 on: September 12, 2007, 03:48:58 am »
No, not much.

Search my recent posts on properties to get (a little) more on this issue.

David
No, you can't have it!

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Collection class?
« Reply #2 on: September 12, 2007, 06:39:26 pm »
It seems to help code generation.  If the attribute is a container of some sort, that fact is reflected in the generated coding of that attribute (allowing the attribute to concurrently hold multiple values) as opposed to it being coded as a simple single valued type.  

I work too far upstream (primarily in the DIM/CIM/PIM models) to use code generation, so I can't help more.
« Last Edit: September 12, 2007, 06:41:00 pm by jeshaw2 »
Verbal Use Cases aren't worth the paper they are written upon.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Collection class?
« Reply #3 on: September 12, 2007, 07:41:14 pm »
In other words, it enables you to code the attribute as an array of multiple concurrent values.

I will update the Attribute Details topic to explain that.

Thanks for highlighting the lack.

Roy
Best Regards, Roy

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Collection class?
« Reply #4 on: September 13, 2007, 03:12:25 am »
An array would be one type of container, but is it the only type of container?  Perhaps so within EA, but there are other container types as well.  Does this EA modeling feature support any of those as well?  For example, would you consider an attribute which is an anchor for a linked-list qualify as a container.  :-/
Verbal Use Cases aren't worth the paper they are written upon.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Collection class?
« Reply #5 on: September 13, 2007, 01:05:43 pm »
The built in code engineering of EA only uses this for arrays.  But you're only constrained by that if you're using code engineering.