• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Part II - Dreamcar questions

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

First of all, i'm sorry for my english, it will'be a problem in part 3...

I have the Dreamcar assignment and i have some questions...

The tree part types has to be extensibles, and we need to design a solution that can get more part types in a future. There are tree posible solutions:
- A generalization with a specialized class for each part type. If we assume that each part type will have specialized data and/or behavior.
- A single PartType class asociated to Request and no asociated to CarModel. If we assume that a Request have only to know the category and the number of parts.
- A class Part asociated to a class/enumeration PartCategory. If we assume that a Request need to know anthing more that the category and the number of parts or if we assume that there are an inventary in db managed by others use cases.

Has someone thought about this?

Thanks in advance...
 
Víctor García
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Up.

Please... Has someone thought about this?

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

Víctor García wrote:Up.

Please... Has someone thought about this?

Thanks.



Hi Victor,

The possible reason for not getting any responses is, you are talking about a specific requirement in your real assignment.
Simple tip : when you are posting questions, don't mention assignment name and change the requirement to a generic question.

All the best.

Best regards,
Sri.
 
Víctor García
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I understand... thanks

I have another question: i think that the multiplicity have to change from Domain Model to Class Diagram... because in the Domain Model we have concepts while in the class diagram we have software elements...

And then, imagine that we have an item with one or more subitems... in this case, i think that in the Domain Model the multiplicity would be *, ok? In the class diagram, could we have a multiplicity of 1 if we have an attribute quantity_of_subitems and all subitems are the same...?
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Victor,
Did you get any reply or came to any conclusion for the multiplicity? Please share it.
thanks
Amit
 
Víctor García
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

A Amit Ranjan wrote:Hi Victor,
Did you get any reply or came to any conclusion for the multiplicity? Please share it.
thanks
Amit



I changed the multiplicity from Domain Model to Class Diagram and i explained every change i made.
 
A Amit Ranjan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have a question regarding the relationship:
What relationship are you considering carmarket and car models. To me it seems many to many.
Also request can be placed against the parts for a particular carmarket.
And bidders can select carmarket of their choice and search request and place bid.
Please comment.
Thanks
Amit
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question seems to be diverging from what might be discussion of the domain model, to talking about how to solve parts of the assignment. The first is allowable, the later - definitely not.

You might want to reconsider your question.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic