It is currently Mon Feb 06, 2012 3:31 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 [ 3 posts ] 
Author Message
 Post subject: Setting multiplicity with a variable
PostPosted: Sun Jan 18, 2009 4:01 pm 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
I have two classes associated with a 1 to 29 association, and instantiated with a link. When I set the association to 1 to 29, everything works just fine. However, I would like to use a constant defined in a header file that was reverse engineered in a different package. How do I get the generator to include the other package that includes my constant? I know I can set the include in Features, but is there a way to depict it graphically? I've been playing with dependencies but can't seem to get it right. Which elements to I define the dependency, and what stereotype do I need to include to force the #include line?


Offline
 Profile  
 
 Post subject:
PostPosted: Mon Jan 19, 2009 2:53 pm 

Joined: Fri Dec 05, 2008 4:55 pm
Posts: 15
Quote:
I know I can set the include in Features, but is there a way to depict it graphically? I've been playing with dependencies but can't seem to get it right.

The dependency is the right way to depict it graphically. Try drawing a dependency from the class where the constant is used, to the package where the constant is declared.

Quote:
what stereotype do I need to include to force the #include line?

When drawing a dependency, set the "Usage" stereotype to force the #include line.


If this still doesn't work, try putting up a few pictures of your Object Model Diagrams so we can see the layout of your classes and objects.


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2009 10:15 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
I'm not sure what the problem would be. Is the attached model what you need?


Attachments:
File comment: Constant used in Association
supportZip.zip [16.96 KiB]
Downloaded 18 times
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:

cron

suspicion-preferred