jQuery in Action, 2nd edition*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Design Pattern and its Java Implementation Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Design Pattern and its Java Implementation Question" Watch "Design Pattern and its Java Implementation Question" New topic
Author

Design Pattern and its Java Implementation Question

Nilesh Raje
Ranch Hand

Joined: Aug 02, 2005
Posts: 153
Hi there,

Can anyone help me with this question about what kind of design pattern would be best for this and best approach to solve this

There are three actors in this scenario: one warehouse, suppliers and consumers. One supplier can
produce only one type of stuff. One consumer can also consume only one type of stuff. The warehouse
knows about suppliers and consumers, but none of them is aware about each other. Design the interfaces
for all actors in this scenario and write a small simulator that demonstrates how the warehouse works
with several suppliers, consumers and different types of stuff. Generics are highly appreciated in this
problem.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
Help with what, specifically? This looks like homework that you should be doing in order to learn. Folks here are not going to do it for you.

So: What thoughts have you had on any of these? Where are you stuck making progress?


Ping & DNS - my free Android networking tools app
Nilesh Raje
Ranch Hand

Joined: Aug 02, 2005
Posts: 153
Hmm is this Mediator pattern??
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
crosspost: Design Pattern
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design Pattern and its Java Implementation Question
 
Similar Threads
Longer Post - ALL IBM ICE EXAM Q's for UML
PreAssessment Questions and Answers
UML Questions(Pinpoint the wrong answers)
Answers to IBM 486 sample test
[LONG POST] IBM Pre-assessment Test