显示事件的典型 uml 图
我有几个模块。他们通过事件相互交流。
通常使用什么 UML 图来显示这一点?
人们使用非 uml 图吗?
有什么例子吗?
I have a couple modules. They communicate to each other through events.
What UML diagram would typically be used to show this?
Is there a non uml diagram people use?
Any examples?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为您肯定需要一个 序列图 来按顺序显示模块之间的所有事件交互。这是表示组件之间异步消息序列的首选方式
I think you definitely want a sequence diagram to show all the event interaction between modules in sequence. This is the preferred way to represent sequence of asynchronous messages between components
如果您想表达模块 A 触发由模块 B 处理的事件 E 的事实,我建议使用静态图来显示架构的结构。
特别是,我将使用一个类图,我可以在其中绘制:
event
的类)subscribe
publish
的关联。If you want to express the fact that a module A fires an event E that is handled by module B, I suggest a static diagram to show the structure of your architecture.
In particular, I would use a class diagram where I could draw:
event
)subscribe
between B and Epublish
between A and E.一般来说,您需要使用“行为”图。有多种口味。您选择哪一个取决于给定图表想要传达的意图。
http://www.visual-paradigm.com/product/vpuml/provides /behavioralmodeling.jsp
In general you want to use a "behavioral" diagram(s). There are multiple flavors. Which one you choose depends on the intent of what a given diagram wants to convey.
http://www.visual-paradigm.com/product/vpuml/provides/behavioralmodeling.jsp