• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Jude experts - how to draw composition in class diagram

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In this forum lots of people recommended using Jude and I am using it now. It works just fine and ,so far, I'm happy with it.

I need to draw composition relationship in class diagram and couldn't find the right tool. Am I missing something here?

thank.
- Roger
 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Roger Rustin:
Hi,

In this forum lots of people recommended using Jude and I am using it now. It works just fine and ,so far, I'm happy with it.

I need to draw composition relationship in class diagram and couldn't find the right tool. Am I missing something here?

thank.
- Roger



Roger,
Representing a composition relationship is a multi-step process. Lets assume you want to draw a composition between Class A and Class B, where Class A contains B.
1. First draw a regular association (horizontal line, 5th icon in the class diagram toolbar) between the 2 classes.
2. Click on the association line to select it and it will show the properties in the left hand corner section.
3. Click on the 'Role' tab and make sure the target is Class A.
4. Choose the 'aggregation' dropdown and select 'composite'from the options. Choosing this option will draw the filled diamond pointing at Class A.

Parag
[ August 15, 2004: Message edited by: Parag Doshi ]
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic