Question: Using multi-threaded programming, you are required to implement a hotel system, which provides a check-out with cash payment use case depicted in Fig. 1 and

Using multi-threaded programming, you are required to implement a hotel system, whichUsing multi-threaded programming, you are required to implement a hotel system, which provides a check-out with cash payment use case depicted in Fig. 1 and Fig. 2. Fig. 1 depicts the communication diagram for the check-out with cash payment use case and Fig. 2 depicts the simplified software architecture that consists of the Hotel Client and Hotel Server subsystems. In the software architecture (Fig. 2), the Desk Clerk Interface object and Check-out Manager object are active objects (i.e., threads) and they provides a check-out with cash payment use case depicted in Fig. 1and Fig. 2. Fig. 1 depicts the communication diagram for the check-outwith cash payment use case and Fig. 2 depicts the simplified software communicates messages using synchronous message communication, which is implemented by means of a mesarchitecture that consists of the Hotel Client and Hotel Server subsystems. Inthe software architecture (Fig. 2), the Desk Clerk Interface object and Check-out sage buffer and response connector class (Fig. 3 and Fig. 4). Fig. 5 depicts the specification of Check-out Manager object. Fig. 6 and Fig. 7 depict the specifications of classes in Fig. 2.

Fig. 3 message buffer and response connector aProducerTask aConsumerTask send (in message, out response) receive (out message)// reply (iin response) connecton> aMessage connector Buffer&Response MessageBuffer&Response - messageBuffer: Buffer - responseBuffer: Buffer + send (in message, out response) + receive (out message) + reply (in response) 21 Fig. 3 message buffer and response connector aProducerTask aConsumerTask send (in message, out response) receive (out message)// reply (iin response) connecton> aMessage connector Buffer&Response MessageBuffer&Response - messageBuffer: Buffer - responseBuffer: Buffer + send (in message, out response) + receive (out message) + reply (in response) 21

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!