Book a Demo

Author Topic: Class Attributes  (Read 5057 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Class Attributes
« on: November 11, 2011, 10:57:34 pm »
Hi All,

Is there a way in EA to show a relationship between an object (in our case a Requirment/BusinessRule) and specific attributes of a class?

I'm after something that is pretty straight forward as it will be business analysts forming the relationship/dependancy.

Regards,

Jon.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Class Attributes
« Reply #1 on: November 11, 2011, 11:21:41 pm »
Right click on the relationship end nearest to the class containing the attributes and select Link to element feature
Phil
Models are great!
Correct models are even greater!

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Class Attributes
« Reply #2 on: November 11, 2011, 11:30:50 pm »
Hi Phil,

Yep seen this feature, but don't think i can query / report upon the specific relationship with the attribute - as i understand its just a visual aid? What i really need is a way to form AND query the relatiosnhip between an object and a list of specific attributes...

Regards,

Jon.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Class Attributes
« Reply #3 on: November 11, 2011, 11:54:31 pm »
You can report on linked features in RTF as in this simple example:

Below is a simple RTF template to illustrate this

[highlight]package >[/highlight]
{Pkg.Name}
[highlight]diagram >[/highlight]
{Diagram.DiagramImg}
[highlight]< diagram
element >[/highlight]
{Element.Name}


[highlight]connector >
source >
linked feature >[/highlight]
{LinkedSourceFeature.Name}
[highlight]< linked feature[/highlight]

Links to :

[highlight]< source
target >
linked feature >[/highlight]
{LinkedTargetFeature.Name}
[highlight]< linked feature
< target[/highlight]

[highlight]< connector
child elements >
< child elements
< element

child packages >
< child packages
< package[/highlight]

It is also possible to query by SQL using the t_connector table, StyleEx column, you should be able to work out how the information is encoded in the LFSP and LFEP values. The GUIDs will map to t_attribute.ea_guid or t_operation.ea_guid.

Looks like :  

LFSP={72931B80-3646-49e5-93BE-52F627DE9F00}R;LFEP={29152E53-E5C7-4e26-A31B-A3F804459A4F}L;


Cheers

Phil
Models are great!
Correct models are even greater!

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Class Attributes
« Reply #4 on: November 12, 2011, 01:41:34 am »
Excellent Many thanks Phil.

jpdBA

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Class Attributes
« Reply #5 on: November 14, 2011, 02:23:19 pm »
I am figuring that you guys may be able to help me with a nesting / ordering problem I have, and it seems related to this topic.

Within the project browser within a class, I would like to present class attributes followed by requirements elements.

Currently the requirements elements sit above the attributes and cannot be made to sit below the attributes using the Move Element Up/Move Element Down browser tool.

The order of presentation in the Project Browser is import to us from a logic point of view:
Class with nested Attributes followed by Requirements elements.

Is there a setting or option available to do this ?

Ian E Mitchell

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Class Attributes
« Reply #6 on: December 13, 2011, 09:54:48 pm »
Can I suggest you have a look at eaDocX? It's a new addin for EA, which we wrote to solve exactly the problems you describe: showing not just the attributes of an element, but those of it's relations. I think we've made this fairly simple, and even put hyperlinks into the resulting Word document to let your readers follow the EA relationships.
Anyway, have a look and see if it helps you - there's a 30-day free trial..
eaDocX - Document Generator for EA -  http://www.eadocx.com