需要 UML 序列图帮助 [英] UML Sequence Diagram help needed

查看:45
本文介绍了需要 UML 序列图帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前坚持创建 UML 序列图.该图只有一个 Actor 是员工,员工需要在收到成员通知后重新设置成员,这也会通过数据库.

I am currently stuck with creating a UML sequence diagram. The diagram will only have one Actor which is staff, staff needs to instate a member once they are informed by the member and this goes through the database as well.

1 个演员 - 工作人员

1 actor- Staff

类-图书馆信息系统-接口成员数据库

Classes- Library information system- Interface Member Database

请你帮我看看序列图,因为我目前卡住了.

Please could you help me with the sequence diagram as I am currently stuck.

一旦成员通知工作人员将他或她添加到图书馆系统,工作人员需要将其添加到图书馆系统.

Staff needs to add member to library system once the member has informed the staff to add him or her to to the library system.

然后这需要去数据库,它会向工作人员发送一个返回消息,告诉他们该成员已被添加.

Then this needs to go to the database which send a return message to the staff to tell them that the member has been added.

只有工作人员在与系统交谈,没有人与系统交谈.

Only staff is talking to the system and nobody.

推荐答案

如果问题这么简单,我真的不明白你怎么办不到.

If the problem is so simple, I really do not understand how you're not able to.

您需要做的是从会员向员工发送消息.然后从员工到系统.在系统内部发送命令以保留数据库.然后响应从系统发送到工作人员,最后从工作人员发送.

What you need to do is to send a message from Member to Staff. Then from the Staff to the system. Inside the System send the order to keep the database. Responses are then sent from the system to Staff and finally from the staff member.

应该是这样的:

  1. Member -> RequestAccess(DataOfMember) -> Staff

  1. Member -> RequestAccess(DataOfMember) -> Staff

员工 -> 注册(DataofMember) -> 系统

Staff -> Register(DataofMember) -> System

注意:您可以使用构造型 System(记住使用 < 和 >)来表示整个系统.这允许抽象问题,而不必处理构成系统的特定类.

Note: You can use the stereotype System (remember to use the < and >) to represent the system as a whole. This allows abstracting the problem and not have to deal with specific classes that form the system.

  1. 系统 -> InsertIntoDB -> 系统

这是给自己的信息.

  1. <> -> OperationComplete -> 员工
  2. 员工 -> AccessAccepted -> 会员

第 4 步和第 5 步是回报.

Steps 4 and 5 are the returns.

所有这些应该足以让您了解.现在,如果您应该更加谨慎,并且需要表示系统中涉及的类,则必须描述领域模型.

With all this should be enough to make you understand. Now if you you should tread more carefully and need to represent the classes involved in the system must describe the Domain Model.

附上我的例子的图像.和以前没什么不同.

Attached an image for my example. Not so different than you have before.

这篇关于需要 UML 序列图帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆