Book a Demo

Author Topic: How to inlcude the colelction in a class?{NOT RES  (Read 2704 times)

hello

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How to inlcude the colelction in a class?{NOT RES
« on: November 20, 2008, 07:12:16 am »
Hi there,

I have two classes Sale and Item.

Business rules say that:
1. One sale cna have 1..M items
2. One Item can be in 0..1 sales
3. One sale can have up to max of 20 different items (Shoes, Hammer, crow bar...etc)
4. in one sale there can be max of 5 for each Item
(eg: 5 pairs of shoes)

How do i notate this in static class diagram:



« Last Edit: November 20, 2008, 01:24:51 pm by umlontherun »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to inlcude the colelction in a class?
« Reply #1 on: November 20, 2008, 07:17:36 am »
Try setting the multiplicity of the attributes in question. After you create and save the attributes, click the Advanced button (I think that's the correct caption). You should be able to set the options you want on the resulting dialog.
No, you can't have it!

hello

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How to inlcude the colelction in a class?
« Reply #2 on: November 20, 2008, 11:38:39 am »
I'm not using sparx EA i use the good old visio.
Here is the link to what i have created

http://umlontherun.spaces.live.com/blog/cns!981DDCEE87640AE3!121.entry