• 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
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

class diagram questions - fig 9.3 Cade's book

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[code]In the Mark Cade book, figure 9.3 - shows a class diagram of a domain model.

I have 3 question about it.

1. Is it normal to show jsps in class diagram?

2. wood, steel, concrete is extending availabiltyItem
Shouldn't this be just an association relationship?

3. On the availabilityNotice, it has properties
wood: List<Wood>, steel:List<Steel>, concreate:List<concreate>

Can this be replaced by a composite object called say product so that I can group three properties into one
product: List<product>

so that in the future more product can be added without changnig availabilityNotice class? or is this too fine grained for scea 5 class diagram?

Thanks[/code]

Some one on the forum has posted a link to scanned copy of the chapter 9. I could not find the link today, sorry.
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) I am not a fan of having jsp/jsf in the class diagram - class diagram should be technology agnostic...
I would show the jsp/jsf in the component diagram. But, many people do have it in the class diagram - so, there's no rule to it...

2) yah, I too had a abstract base class Product and used that in my design. There was a line in the chapter about 'adding our own thing to make the given model easier' - remember we cannot change the basic model given. I think by having Product, we are making it easier and is perfectly fine for me.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic