日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

php中绘画控制包括什么,PhpStorm中绘画UML

發布時間:2025/3/20 php 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 php中绘画控制包括什么,PhpStorm中绘画UML 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

IDE支持

Phpstorm

在Plugins中 安裝PlantUML integration插件

到http://www.graphviz.org/網站下載graphviz.exe并安裝(這個軟件可以支持更多的UML語法)

將graphviz安裝目錄下的dot.exe路徑添加到PlantUML的設置中

文檔

文檔地址:http://plantuml.com/

建議使用活動圖-Activity-bate語法:活動圖Activity-Beta

活動圖(新語法)

當前活動圖(activity diagram)的語法有諸多限制和缺點,比如代碼難以維護。所以從V7947開始提出一種全新的、更好的語法格式和軟件實現供用戶使用(beta版)。就像序列圖一樣,新的軟件實現的另一個優點是它不再依賴與Graphviz。

新的語法將會替換舊的語法。然而考慮到兼容性,舊的語法仍被能夠使用以確保向前兼容。

但是我們鼓勵用戶使用新的語法格式。

語法

基礎

@startuml、@enduml

開始、結束標記,表示UML解析的部分

start、end

表示圖示的開始和結束。圖示的開始和結束。

:Hello world;

活動標簽(activity label)以冒號開始,以分號結束。活動默認安裝它們定義的順序就行連接。

if、then、else和elseif

設置分支測試。標注文字則放在括號中。

repeat、repeatwhile 重復循環。

while和endwhile進行while循環。還可以在關鍵字endwhile后添加標注,還有一種方式是使用關鍵字is。

fork,fork again和end fork表示并行處理。

note、end note、floating note left 等等表示注釋,例如:

floating note left: This is a note

:foo2;

note right

This note is on several

//lines// and can

contain HTML

====

* Calling the method ""foo()"" is prohibited

end note

#HotPin:activity;、#AAAAAA:ending of the process; 表示顏色

使用->標記,你可以給箭頭添加文字或者修改箭頭顏色。dotted, dashed, bold or hidden arrows 和顏色標記,例如-[#blue]->

通過定義分區(partition),你可以把多個活動組合(group)在一起。通過定義分區(partition),你可以把多個活動組合(group)在一起。例如:

partition Initialization {

:read config file;

:init internal variable;

}

使用管道符|來定義泳道。還可以改變泳道的顏色。

|Swimlane1|

start

:foo1;

|#AntiqueWhite|Swimlane2|

:foo2;

:foo3;

|Swimlane1|

:foo4;

|Swimlane2|

:foo5;

stop

關鍵字detach移除箭頭。

通過修改活動標簽最后的分號分隔符(;),可以為活動設置不同的形狀。|、、/、]、}

:next(o)|

:Receiving;

split

:nak(i)<

:ack(o)>

split again

:ack(i)<

:next(o)

on several line|

:i := i + 1]

:ack(o)>

split again

:err(i)<

:nak(o)>

split again

:foo/

split again

:i > 5}

stop

end split

:finish;

一個例子

@startuml

start

if (is login?) then (Y)

if (gived box?) then (Y)

:illegal request;

detach

else (N)

:release box;

:get boxOid;

endif

else (N)

if (has boxOid?) then (N)

:illegal request;

detach

endif

endif

:check wechat broswer;

if (wechat broswer?) then (Y)

if (get openid from cookie?) then (Y)

if (get userInfo from DB by openid?) then (N)

:clear openid in cookie;

:re-request Url;

detach

endif

else (N)

:location wechat auth;

detach

endif

endif

:receive chocolate;

end

@enduml

總結

以上是生活随笔為你收集整理的php中绘画控制包括什么,PhpStorm中绘画UML的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。