It is currently Tue Feb 07, 2012 7:52 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 [ 3 posts ] 
Author Message
 Post subject: Inter package communication
PostPosted: Fri Jan 09, 2009 2:48 pm 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
What is the preferred pattern for inter package communication? I cannot add ports to a package. Or are packages not really observed during code generation? If they aren't observed, is it still possible to connect two classes within packages via ports without drawing a diagram with the two classes? If somebody has sample code, that would be great. Thanks.


Offline
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 8:09 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
A Package in UML is just like a folder. It's a mechanism to help you organise your model. Communication is between objects. Objects that communicate with one another can of course be instantiated from classes that exist in different packages.

Typically a model will have many packages but the classes in these packages should adhere to some principles. Here's a useful white-paper by Robert Martin that outlines the principles - http://www.objectmentor.com/resources/a ... larity.pdf

As far as code gen in Rhapsody goes, it's best to think of a package as a namespace. It will be global space unless you actually tick the property to force the package name to be a namespace.

IMO, namespacing should be used extensively.

I know I mentioned it before but a lack of training will make it hard to get a handle on this aspect of modeling. There are good ways to organise your model and if you hit on the good way then you'll have a significantly more productive and enjoyable time. Generally those who try Rhapsody and don't like it, failed to hit on the right model organisation.

I realise I haven't answered your specific questions. Perhaps a look at the installed samples might help.


Offline
 Profile  
 
 Post subject:
PostPosted: Sat Jan 10, 2009 11:49 pm 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
No, you answered it perfectly. I made a similar conclusion after exploring Rhapsody some more, but its nice to get a confirmation. I completely agree about the training comment. I would be more than happy to take donations until my employer ponys up.


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