|
It is currently Mon Feb 06, 2012 2:33 am
|
View unanswered posts | View active topics
| 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. |
 |
|
 |
|
| Author |
Message |
|
bitblit
|
Post subject: Abstract interface pattern Posted: 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.
|
|
|
|
 |
|
bitblit
|
Post subject: Re: Abstract interface pattern Posted: 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.
|
|
|
|
 |
|
bitblit
|
Post subject: Re: Abstract interface pattern Posted: 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?
|
|
|
|
 |
|
Farquad
|
Post subject: Re: Abstract interface pattern Posted: Sat Aug 29, 2009 6:31 pm |
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.
|
|
|
|
 |
|
|
 |
|
 |
|
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
|
|