[gme-users] gme-users Digest, Vol 105, Issue 1

Ray, Sumit (US SSA) sumit.ray at baesystems.com
Tue Apr 9 12:25:59 CDT 2013


Hi,

The solution is that the AssociationRoles can be accessed directly as "_meta_[src|dst]AssocitionName" as public objects from the Connection object.

Thanks,
Sumit

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of gme-users-request at list.isis.vanderbilt.edu
Sent: Friday, April 05, 2013 1:00 PM
To: gme-users at list.isis.vanderbilt.edu
Subject: gme-users Digest, Vol 105, Issue 1

Send gme-users mailing list submissions to
	gme-users at list.isis.vanderbilt.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
or, via email, send a message with subject or body 'help' to
	gme-users-request at list.isis.vanderbilt.edu

You can reach the person managing the list at
	gme-users-owner at list.isis.vanderbilt.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gme-users digest..."


Today's Topics:

   1. recovering the AssociationRole (Ray, Sumit (US SSA))
   2. Re: recovering the AssociationRole (Kevin Smyth)


----------------------------------------------------------------------

Message: 1
Date: Fri, 5 Apr 2013 15:13:07 +0000
From: "Ray, Sumit (US SSA)" <sumit.ray at baesystems.com>
Subject: [gme-users] recovering the AssociationRole
To: "gme-users at list.isis.vanderbilt.edu"
	<gme-users at list.isis.vanderbilt.edu>
Cc: "Ray, Sumit \(US SSA\)" <sumit.ray at baesystems.com>
Message-ID: <20130405151310.AC882136400B at list.isis.vanderbilt.edu>
Content-Type: text/plain; charset="us-ascii"

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/821f1a24/attachment-0001.html 

------------------------------

Message: 2
Date: Fri, 5 Apr 2013 10:45:37 -0500
From: "Kevin Smyth" <ksmyth at isis.vanderbilt.edu>
Subject: Re: [gme-users] recovering the AssociationRole
To: "gme-users" <gme-users at list.isis.vanderbilt.edu>
Message-ID:
	<5DD6FB0BB70FD348A9B2857DD9233366FC19D0 at discovery.isis.vanderbilt.edu>
Content-Type: text/plain; charset="us-ascii"

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-0001.html 

------------------------------

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


End of gme-users Digest, Vol 105, Issue 1
*****************************************


More information about the gme-users mailing list