使用单例模式的打印命令的UML图 [英] UML diagram for print command using singleton pattern

查看:79
本文介绍了使用单例模式的打印命令的UML图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户从word文档中提供打印命令,那么如何用UML设计这个单例设计模式。



我尝试过:



i尝试使用UML,如何将图像发布到代码。

if user gives print command from word document, then how to design this singleton design pattern in UML.

What I have tried:

i tried in UML, how to post image to code.

推荐答案

也许你可以找到一个您喜欢的UML工具: https://www.slant.co/topics/4978/~what-is-the-fastest-way-to-create-and-edit-uml-diagrams [ ^ ]

如果您想在此处或在博客上发布图表,可以尝试 Gravizo ,这会创建一个文本格式的图表链接,您可以粘贴。< br $> b $ b

< img src ='https://g.gravizo.com/svg?

digraph G {

main - >解析 - >执行;

main - > init;

main - >清理;

执行 - > make_string;

执行 - > printf

init - > make_string;

main - > printf;

执行 - >比较;

}

'/>



示例图 [ ^ ]
Maybe you can find an UML tool to your liking here: https://www.slant.co/topics/4978/~what-is-the-fastest-way-to-create-and-edit-uml-diagrams[^]
If you want to post a diagram here or on a blog, you can try Gravizo, this creates a link with the diagram in text format that you can paste.

<img src='https://g.gravizo.com/svg?
digraph G {
main -> parse -> execute;
main -> init;
main -> cleanup;
execute -> make_string;
execute -> printf
init -> make_string;
main -> printf;
execute -> compare;
}
'/>

Example diagram[^]


这篇关于使用单例模式的打印命令的UML图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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