This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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