A person is working in Stocks Trading business. He wants to automate his business and has asked you to develop a Stock Trade System for him.
Your client creates some orders for buying and selling stocks. Then the orders are sent to the agent. The agent takes the orders and places them to the Stock Trade system. The agent keeps an internal queue with the order to be placed. Let's assume that the Stock Trade system is closed each Monday, but the agent accepts orders, and queue them to be processed later on.
Can anyone help how to implement it through the command pattern in java?