- Draw a sequence diagram based on the specifications
Sequence Diagrams (15:40)
Creating Sequence Diagrams in Violet (7:45)
- Add four object lifelines. Label them in the following order, from left to right:
- MainWindow
- ComoZoo : Zoo
- B168 : BirthingRoom
- Vet : Employee
- Add an activation bar to the MainWindow object lifeline.
- Draw the following method calls.
- MainWindow calls the BirthAnimal method on the ComoZoo object.
- From the call to the zoo's BirthAnimal method, the ComoZoo calls the BirthAnimal method on the B168 object.
- From the call to the birthing room's BirthAnimal method, B168 calls the DeliverAnimal method on the Vet object.
- From the call to the vet's DeliverAnimal method, the Vet calls the SterilizeBirthingArea method on the Vet object (i.e. on itself).
- From the call to the vet's DeliverAnimal method and after the call to SterilizeBirthingArea, the Vet calls the WashUpBirthingArea method on the Vet object (i.e. on itself).
- Export diagram and submit to Blackboard
- Save the diagram by clicking File | Save in Violet.
Tip: Ensure that Violet adds a .seq.violet extension to the file when saving.
- Export the diagram by clicking File | Export to | Image file in Violet and exporting a .png file.
- Submit the diagram by uploading the .png file to Blackboard.