B15 Informatik 3 (Info3)

Website of Prof. Dr. Barne Kleinen, Professor for Media Informatics (Bachelor/Master) at HTW Berlin

Assignment 03 - Sequence Diagrams and State Machine Diagrams

     <prev next>

Launch Sequence Pelican launch sequence. Foto by Don McCullough

Pre-Lab

Assignment

Part 1: Sequence Diagrams

  1. As a finger exercise for Sequence Diagrams, pick one of the following example projects from the first semester and draw a sequence diagram for the main use case:
    • The Clock Display / Use case: timeTick() is called
    • Tech Support / Use case: user command is entered (start() method in SupportSystem)
    • The Zuul Project / Use case: user enters command (method: play() in Game.java)
  2. Take your scenarios from the second exercise and have a good look at them. There are a number of processes that you should have detailed in your scenarios - if not, now you learn how to be thorough :) You need to draw sequence diagrams for the following use cases:
    • Ordering a Pumpkin/Treat
    • one other use case of your choosing

If you feel like it, you can continue with a sequence diagram for additional use cases.

Part 2: State Machine Diagrams

  1. Model the modified goat/cabbage/wolf problem: The farmer is in Schöneweide and wants to get his goat, his cabbage and his wolf over to Oberschöneweide. Only one thing can fit in his boat at a time beside himself. He cannot leave the cabbage and the goat or the goat and the wolf alone on the same side of the river, for obvious reasons. Is it possible for him to get all three possessions across the Spree? Draw a State Machine Diagram modelling both solutions to this problem.
  2. Model the states an IMI student passes through from the first until the sixth semester. (Glory for the most humorous model that is not offensive.)
  3. Model the states of a parser that determines if a given string is a proper floating-point number, i.e. [sign] integerpart dot fractional part [E exponent]
  4. Model the states a Pumpkin order in the HTW system can be in.

Results Submission

  • Hand in a lab report (including your diagrams)
  • Take part in the oral test on Nov. 26 2020 More info on the Labs page.

State Machine Part based on Exercise04 by Prof. Dr. Debora Weber-Wulff