Draw a sequence diagram for the warehouseOnFire
scenario of Figure 2-17. Include the objects bob,
alice, john, FRIEND, and instances of other classes you may need.
Draw a sequence diagram for the ReportIncident
use case of Figure 2-16. Make sure it is consistent with the sequence diagram
of Exercise 1.
Draw a sequence diagram for your use case BuyWeeklyCard.
Extend the diagram to include the exception DistributorOrtOfChange
being raised at some point. Are there different ways to raise the exception?
Draw an activity diagram for modeling aDayInTheLifeOfAStudent.
You can begin with a state Asleep
that transitions to another state upon the AlarmClock
ringing. Include at least six other states besides Asleep.
Consider your watch as a system and set the time 2 minutes ahead. Write
down each interaction between you and your watch as a scenario. Record all
interactions, including any feedback the watch provides you. Feedback may
include blinking, text, or beeping. Extract states and transitions from the
scenario and draw an activity diagram for it.
The URL pointing to your report is due in my mailbox by 8:00 am the morning
of your next exercise.