{"id":234035,"date":"2022-01-21T10:19:14","date_gmt":"2022-01-21T02:19:14","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=234035"},"modified":"2022-01-08T18:20:22","modified_gmt":"2022-01-08T10:20:22","slug":"uml-sysml-gaphor","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/uml-sysml-gaphor.html","title":{"rendered":"\u7528\u4e8e UML\u3001SysML \u7b49\u7684 Gaphor\u4f7f\u7528\u6280\u5de7"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nGaphor \u662f\u4e00\u4e2a\u81ea\u7531\u5f00\u6e90\u7684\u5efa\u6a21\u5e94\u7528\uff0c\u652f\u6301\u5404\u79cd\u5efa\u6a21\u8bed\u8a00\uff0c\u5982 UML\u3001SysML\u3001RAAML \u548c C4\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4e0d\u77e5\u9053\u201c\u5efa\u6a21\u8bed\u8a00modeling language\u201d\u8fd9\u4e2a\u8bcd\uff1f\u57fa\u672c\u4e0a\uff0c\u5b83\u662f\u4e00\u7ec4\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u8bbe\u8ba1\u548c\u6784\u9020\u7ed3\u6784\u7684\u6307\u4ee4\u3002\u5b83\u53ef\u4ee5\u662f\u6587\u5b57\u7684\uff0c\u4e5f\u53ef\u4ee5\u662f\u56fe\u5f62\u7684\u3002<\/p>\n

\u56fe\u5f62\u5316\u7684\u66f4\u5bb9\u6613\u770b\uff0c\u4e5f\u66f4\u5bb9\u6613\u5f04\u6e05\u695a\u9879\u76ee\u7684\u5404\u4e2a\u7ec4\u6210\u90e8\u5206\u662f\u5982\u4f55\u76f8\u4e92\u5173\u8054\u7684\u3002<\/p>\n

\u4f60\u89c1\u8fc7\u6d41\u7a0b\u56fe\u6216\u987a\u5e8f\u56fe\u5417\uff1f\u90a3\u4e9b\u4e5f\u662f\u4e00\u79cd\u6700\u7b80\u5355\u5f62\u5f0f\u7684\u56fe\u5f62\u5efa\u6a21\u3002<\/p>\n

\"\"<\/p>\n

Sequence diagram example<\/em><\/p>\n

\u6709\u5404\u79cd\u5efa\u6a21\u8bed\u8a00\uff0c\u5b83\u4eec\u88ab\u7528\u4e8e\u8f6f\u4ef6\u5f00\u53d1\u3001\u7cfb\u7edf\u5de5\u7a0b\u3001\u7269\u7406\u5b66\u3001\u9879\u76ee\u7ba1\u7406\u7b49\u65b9\u9762\u3002<\/p>\n

\u7528\u4e8e UML\u3001SysML \u7b49\u7684 Gaphor<\/strong><\/div>\n

Gaphor\u4f7f\u7528 UML\u3001SysML \u548c RAAML OMG \u6807\u51c6\u3002\u5b83\u8fd8\u5305\u62ec\u5bf9 C4 \u6a21\u578b\u7684\u652f\u6301\uff0c\u7528\u4e8e\u8f6f\u4ef6\u67b6\u6784\u7684\u53ef\u89c6\u5316\u3002<\/p>\n

\u5b83\u4e0d\u4ec5\u4ec5\u662f\u4e00\u4e2a\u00a0\u7ed8\u56fe\u5de5\u5177\u3002\u5b83\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5b8c\u5168\u517c\u5bb9\u7684 UML 2 \u6570\u636e\u6a21\u578b\u3002\u4f60\u53ef\u4ee5\u7528 Gaphor \u521b\u5efa\u9ad8\u5ea6\u590d\u6742\u7684\u6a21\u578b\u3002<\/p>\n

\"\"<\/p>\n

\u7528 Python \u7f16\u5199\u7684 Gaphor \u5728 Apache 2 \u8bb8\u53ef\u8bc1\u4e0b\u662f\u5b8c\u5168\u5f00\u6e90\u7684\u3002\u4f60\u53ef\u4ee5\u5728\u00a0\u5176 GitHub \u4ed3\u5e93\u00a0\u627e\u5230\u5b83\u7684\u6240\u6709\u6e90\u4ee3\u7801\u3002\u5b83\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5b89\u88c5\u5728 Linux\u3001Windows \u548c macOS \u4e0a\u3002<\/p>\n

\u4f60\u53ef\u4ee5\u4ee5 PDF\u3001PNG\u3001SVG \u548c XML \u683c\u5f0f\u5bfc\u51fa\u4f60\u7684\u56fe\u8868\u3002\u4f60\u8fd8\u53ef\u4ee5\u63d2\u5165\u4e00\u4e2a\u4ee3\u7801\u751f\u6210\u5668\u3002<\/p>\n

Gaphor \u7f51\u7ad9\u63d0\u5230\u5b83\u6709\u6df1\u8272\u6a21\u5f0f\uff0c\u4f46\u6211\u5728\u4e0b\u8f7d\u7684 AppImage \u7248\u672c\u4e2d\u6ca1\u6709\u770b\u5230\u4efb\u4f55\u9009\u9879\u53ef\u4ee5\u542f\u7528\u5b83\u3002<\/p>\n

\u5728 Linux \u4e0a\u5b89\u88c5 Gaphor<\/strong><\/div>\n

\"\"<\/p>\n

Gaphor user interface<\/em><\/p>\n

Arch \u7528\u6237\u53ef\u4ee5\u5728 AUR \u4e2d\u627e\u5230 Gaphor\u3002\u5bf9\u4e8e\u5176\u4ed6\u53d1\u884c\u7248\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u00a0AppImage\u00a0\u548c Flatpak\u3002<\/p>\n

\u4f60\u53ef\u4ee5\u4ece\u5176\u00a0\u4e0b\u8f7d\u9875\u9762\u00a0\u4e0b\u8f7d AppImage\u3002<\/p>\n

\u5982\u679c\u4f60\u60f3\u4f7f\u7528 Flatpak \u7248\u672c\uff0c\u8bf7\u5148\u6dfb\u52a0 Flathub \u4ed3\u5e93\uff1a<\/p>\n

flatpak remote-add --user --if-not-exists flathub https:\/\/dl.flathub.org\/repo\/flathub.flatpakrepo<\/pre>\n

\u7136\u540e\u518d\u5b89\u88c5\u5b83\uff1a<\/p>\n

flatpak install --user flathub org.gaphor.Gaphor<\/pre>\n

\u7531\u4e8e Gaphor \u672c\u8d28\u4e0a\u662f\u4e00\u4e2a Python \u5e94\u7528\uff0c\u4f60\u4e5f\u53ef\u4ee5\u00a0\u4f7f\u7528 Pip\u00a0\u5b89\u88c5\u5b83\u3002<\/p>\n

pip install gaphor<\/pre>\n

\u5f53\u6211\u8fd8\u662f\u4e00\u540d\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u5de5\u4f5c\u65f6\uff0c\u6211\u4f7f\u7528 UML \u548c\u5e8f\u5217\u56fe\u3002\u5728\u8fc7\u53bb\u7684\u51e0\u5e74\u91cc\uff0c\u6211\u6ca1\u6709\u4f7f\u7528\u5b83\u3002\u770b\u770b Gaphor\uff0c\u6211\u8ba4\u4e3a\u5982\u679c\u4f60\u5fc5\u987b\u4e3a\u4f60\u7684\u9879\u76ee\u521b\u5efa UML \u548c\u5176\u4ed6\u56fe\u8868\uff0c\u5b83\u662f\u4e00\u4e2a\u76f8\u5f53\u4e0d\u9519\u7684\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e0d\u77e5\u9053\u201c\u5efa\u6a21\u8bed\u8a00modeling language\u201d\u8fd9\u4e2a\u8bcd\uff1f\u57fa\u672c\u4e0a\uff0c\u5b83\u662f\u4e00\u7ec4\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u8bbe\u8ba1\u548c\u6784\u9020\u7ed3\u6784\u7684\u6307\u4ee4\u3002 […]<\/p>\n","protected":false},"author":323,"featured_media":216064,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-234035","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/234035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=234035"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/234035\/revisions"}],"predecessor-version":[{"id":234044,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/234035\/revisions\/234044"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/216064"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=234035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=234035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=234035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}