• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Design Pattern and its Java Implementation Question

 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Nilesh Raje
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm is this Mediator pattern??
 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
crosspost: Design Pattern
 
reply
    Bookmark Topic Watch Topic
  • New Topic