It is currently Tue Feb 07, 2012 8:01 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Get dependencies between a requirement and a use case
PostPosted: Thu Sep 25, 2008 8:32 am 

Joined: Thu Sep 25, 2008 8:01 am
Posts: 2
Hello,

I am using the java API to read a Rhapsody model and print out informations.
In this model there is requirements and use case with "depedency links" between them.
See the attached picture to see exactly how it is.
I know the GUID of requirement_1 and I tried many different methods (with the wonderfulll amount of documentation, there is no other choice :? ) but none of them is returning the information I Look for.

IRPCollection coll =((IRPRequirement)rhapProject.findElementByGUID(guid)).getDependencies();//.getAnchoredByMe();//.getConstraintsByHim();//.getConstraints();//.getAnnotations();//.getMainDiagram();//.getHyperLinks();//.getReferences();


If you solved this problem with the Java or anoter API, please tell me how.

regards,

Synn


Attachments:
File comment: Model picture
dependencies.JPG
dependencies.JPG [ 67.06 KiB | Viewed 353 times ]
Offline
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2008 12:12 pm 

Joined: Thu Sep 25, 2008 8:01 am
Posts: 2
Hello,

the method I was looking for is getDependencies(). Then you get a IRPCollection of IRPDependency wich represent a link between two elements.
On a IRPDependency you can call getDependent() and getDependsOn() to have one end or another of the link.

hoping it helps someone

regards,

synn


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron

suspicion-preferred