Figure 3-7 Unlocking car: Cumbersome sequence
While this might be technically correct, it is less than optimal in the model for two main reasons. First, the car does not exist for the purpose of accepting a key. Even if unlocking the car were required to be by key versus some other means, saying that the required function for the car is to accept a key is not true, and misleading. Second, it requires an internal function, shown as a reflexive arrow on the sequence diagram, to be clear about what is going on.
This pattern, or we should say,
Figure 3-8 Unlocking car: Better sequence
Chapter 3. | 61 |