图书交换的时序图 [英] sequence diagram for books exchange

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

问题描述

请任何人在附加的序列图中提出任何改进或更正的建议.该图是关于学生注册和搜索书籍的.

Please can anyone suggest any improvements or corrections in the attached sequence diagram. The diagram is regarding student registration and search book.

推荐答案

您不应该考虑在序列图中创建类.制作一个类图,也许是一个对象图,然后用创建的类的实例作为时间线制作序列图.在这里添加一个类图,没有它就不可能回答你的问题.

You should not think on classes creation being in sequence diagram. Make a class diagram, maybe an object diagram, and after that make your sequence diagram with instances of created classes as timelines. Add a class diagram here, without it it is impossible to answer your questions.

按原样,您正在使用用例图(代理)的元素,而不是类.这也是可以接受的.但是,您应该创建一个组件图并将组件用作时间线.

As is, you are working with elements of use case diagram (agents), not classes. It is acceptable, too. But then you should create a component diagram and use components as timelines.

因此,您的问题是您的图表至少比应有的少了一张.一个完整的图表,而不是一个块.

So, your problem is that you have minimally one diagram less than you should. A whole diagram, not a block in one.

因此,对于此任务,您可以使用以下几组图表:

So, for this task you can use the following sets of diagrams:

最全:用例+状态+组件+通信+序列+类+对象+复合结构

The fullest one: Use Case + State + Component + Communication + Sequence + Class + Object + Composite Structure

图表的广泛重构:组件 + 序列 + 类 + 对象

The wide refactoring of your diagram: Component + Sequence + Class + Object

极简重构:序列+类

当然,您可以制作多个提及的任何类型的图表.此外,一些图表如果很小,可以合并为一个 - 例如 UC+State.

Of course, you can make more than one diagram of any kind mentioned. Also, some diagrams if they are small, can be combined in one - UC+State, for example.

正常的流程是一张一张的图,回到之前的一张.可以同时创建同一级别的行为/结构图.如果你对一张图的某些想法有疑问,请尝试在另一张图上表达.

The normal process is creation one diagram after another, returning to the previous ones. Behaviour/structure diagrams of the same level can be created simultaneously. If you have problems with some thought on one diagram, try to express it on another one.

是的,您可以为用例的每个动作甚至活动/通信图绘制序列图.但是,如果您的前辈不让您这样做,则只需创建这些图表就足以更好地理解该过程.

Yes, you can do a sequence diagram for every action of use case or even of Activity/communication diagram. But if your seniors won't make you to do it, it is enough to create only these diagrams that are needed for better understanding of the process.

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

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