[gme-users] recovering the AssociationRole

Kevin Smyth ksmyth at isis.vanderbilt.edu
Fri Apr 5 10:45:37 CDT 2013


Sumit,

 

Udm models GME connections as a Uml::Association that contains two
AssociationRoles (one for each end of the connection). AssociationRoles
do not connect all three objects, so I'm not sure what you're asking
here.

 

If you have a connection object conn, conn.type() is the Uml::Class of
the object (which corresponds to the GME kind), and
conn.type().association() is the Association.

 

Kevin

 

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Ray,
Sumit (US SSA)
Sent: Friday, April 05, 2013 10:13 AM
To: gme-users
Cc: Ray, Sumit (US SSA)
Subject: [gme-users] recovering the AssociationRole

 

Hi,

 

Using UDM, I can query for "Connection" objects and get the pair of
objects at either end from that "Connection" object using a provided
API. However, I have not found a simple approach to finding the
"AssociationRole" object that connects all three objects. I have figured
out a way to get the role by enumerating and comparing ids but is there
a better or preferred way?

 

Thanks,

Sumit

 

Sumit Ray

BAE Systems

4301 N. Fairfax DR, Suite 800

Arlington, VA 22203

 

Phone:: (703) 284-8427

Cell: (571) 970-7558

Fax: (703) 528-4726

Email:: sumit.ray at baesystems.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20130405/d32ee477/attachment.html 


More information about the gme-users mailing list