150 likes | 266 Vues
This example illustrates how to create a sequence diagram representing the interaction between customers Tong Seng and Ramasamy at their favorite restaurant. The diagram includes elements such as messages and signals exchanged between characters, including the waiter Ahmad, the bartender Nor, and the chefs Ali and Rafi. The sequence captures the order placement, beverage request, meal preparation, and billing process, showcasing the flow of messages and the control of interactions in a restaurant setting.
E N D
Simple Example Tong Seng and Ramasamy go to their favourite restaurant where they are greeted by waiter Ahmad. They immediately place their order – one steak and chips and one salad. Ahmad send the order the order to the kitchen where the two chefs (Ali and Rafi) set about preparing the two meals. While they are waiting, they order two glasses of ice tea which Ahmad asks Nor the bartender to prepare. Nor passes the drinks to Ahmad, who then hands them to Tong Seng and Ramasamy. Then the shouts from the kitchen indicate that the food is ready and Ahmad brings them their meals. Fifteen minutes later they have finished eating and drinking and ask Ahmad for the bill. He brings it to them and after scrutinising it for a moment leave a small pile of used notes on the table and make an exit. Create a sequence diagram for this scenario.