绘制顺序图 [英] Drawing Sequence Diagrams
本文介绍了绘制顺序图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种简单的语言/命令行工具来绘制序列和时间图(可能是2种不同的工具)。我已经找到了 Mscgen 的顺序图绘制,看起来不错,但我正在学习其他可能性。
谢谢
解决方案
找到和我通常用来从纯文本序列图是 SDEdit 。这是一个Java工具,所以你可以在任何操作系统中使用它。这是免费的软件!
使用这个工具,您可以编写以下代码:
ext:外部[pe]
用户:演员
/ order:订单[x]
db:TicketDB
acc :账户
ext:user.order门票!
user:order.new()
order:return = db.reserve(date,count)
db:return = acc.debit(cost)
acc:return = db .bonus(日期,计数)
取得此项:
I'm looking for an easy language/command line utility to draw sequence and timing diagrams (could be 2 different tools). I've already found Mscgen for sequence diagram drawing and looks pretty good, but I'm studying other possibilities.
Thanks
解决方案
The best software I've found and I usually use to make sequence diagrams from plain text is SDEdit. It's a Java tool, so you can use it in any operating system. And it's free software!
With this tool, you write the following:
#![SD ticket order]
ext:External[pe]
user:Actor
/order:Order[x]
db:TicketDB
acc:Account
ext:user.order a ticket!
user:order.new()
order:return=db.reserve(date,count)
db:return=acc.debit(cost)
acc:return=db.bonus(date,count)
to obtain this:
这篇关于绘制顺序图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文