简体   繁体   中英

UML Sequence Diagram Implementation

I have never completed a sequence diagram before and would like to know if my first attempt is correct.

This sequence diagram is to represent someone modifying a pre-existing scoresheet in a tennis game. This change is added to the database.

在此处输入图像描述

Is this a correct way to model this sequence?

Class Diagram For App 类图

There are several problems

  • You confuse who asks and who does: visibly for you the messages 1, 2 and 3 are actions done by the user, but the notation indicates they are done by ModifyScore for 1 and 3, and by Database for 2.

  • In your explicit returns (1.2 and 6) you indicate actions, but they can only support the return value(s).

  • There is no link between the messages 1, 2 and 3, and the message 2 goes to the Database, and the message 3 has no consequences for the database. That cannot does what you expect.

  • It is very difficult to imagine the user asking something to the database

Do you have a simplified version of the Java program you try to describe through the a sequence diagram?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM