Interaction Modelling
Modelling Behaviour: Interaction Modelling
Behaviour Specifications
Interaction Modelling
Sequence Diagram - Example
Elements of a Sequence Diagram
Identify the elements
Building a sequence diagram
Message signals V Message calls
University Enrollment Example
How do we keep the interaction under control?
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.