Object-Oriented Programming 1: 3.1 Zoo Sequence Diagram

  1. Draw a sequence diagram based on the specifications
  2. Sequence Diagrams (15:40)

    Creating Sequence Diagrams in Violet (7:45)

    1. Add four object lifelines. Label them in the following order, from left to right:
    2. Add an activation bar to the MainWindow object lifeline.
    3. Draw the following method calls.
      1. MainWindow calls the BirthAnimal method on the ComoZoo object.
      2. From the call to the zoo's BirthAnimal method, the ComoZoo calls the BirthAnimal method on the B168 object.
      3. From the call to the birthing room's BirthAnimal method, B168 calls the DeliverAnimal method on the Vet object.
      4. From the call to the vet's DeliverAnimal method, the Vet calls the SterilizeBirthingArea method on the Vet object (i.e. on itself).
      5. 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).
  3. Export diagram and submit to Blackboard
    1. Save the diagram by clicking File | Save in Violet.
    2. Tip: Ensure that Violet adds a .seq.violet extension to the file when saving.

    3. Export the diagram by clicking File | Export to | Image file in Violet and exporting a .png file.
    4. Submit the diagram by uploading the .png file to Blackboard.