自动生成 顺序图(序列图) 软件
一款很强大的uml辅助工具Quick Sequence Diagram Editor,专门用于画顺序图(Sequence Diagram),关键是免费的.
优点有:
- 能够通过写简易的脚本,即时生成Sequence Diagram.
- 带有图片导出功能(png,gif,bmp,jpg,pdf等格式),而且能够调整图片的大小,图片也很清晰.
- 能够画出异步的操作,并以不同的颜色标记不同线程的生命线.(you can create diagrams that model arbitarily(arbitrarily?) many sequences running in parallel, not just a single one. The sequences can (at your option) be distinguished by the colours of their corresponding lifelines.)
用法:
脚本的基本格式是<消息发送对象>:消息接收对象.消息名称.来个样例吧.下面是样例脚本及画出的顺序图:
client1:Actor
client2:Actor
webServer:Server[a]
/t1:Thread[a]
/t2:Thread[a]
localDisk:HDDclient1:webServer.GET /
webServer[,0]:>t1.new
t1[,1]:page=localDisk.read(“/var/www/index.html”)
client2:webServer.GET /doc/menu.html
webServer[,2]:>t2.new
t2[,3]:page=localDisk.read(“/var/www/doc/menu.html”)
t2:client2.send(page)
t1[,1]:client1.send(page)
t1:stop
t2[,3]:stop