It is currently Mon Feb 06, 2012 2:33 am

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 [ 4 posts ] 
Author Message
 Post subject: Abstract interface pattern
PostPosted: Sat Aug 29, 2009 7:15 am 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
Can somebody post a good example of implementation of an abstract interface pattern? Is it possible to draw it in a diagram and let the code generator and framework set the associations correctly? i can't seem to do it. I have to resort to drawing some of it in UML, but creating the link in code.


Offline
 Profile  
 
 Post subject: Re: Abstract interface pattern
PostPosted: Sat Aug 29, 2009 7:25 am 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
I narrowed down the problem. I can draw an abstract interface pattern purely in UML, with no code, and get Rhapsody to generate my objects and links correctly. But when I move the calling class into a composite class, it fails.


Offline
 Profile  
 
 Post subject: Re: Abstract interface pattern
PostPosted: Sat Aug 29, 2009 3:24 pm 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
I figured out my problem after running a series of tests. First, always read the Check Model output when problems occur, even when the compiler doesn't fail.

Links can't cross composite boundaries. What is the best solution if thats really what you want to do? I know I can instantiate the link programmatically. Is there another preferred method?


Offline
 Profile  
 
 Post subject: Re: Abstract interface pattern
PostPosted: Sat Aug 29, 2009 6:31 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Have you used Ports? A relay port will allow you to expose the interface at the composite level.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 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:


suspicion-preferred