当前位置: 首页 > news >正文

更改网站名称廊坊百度seo公司

更改网站名称,廊坊百度seo公司,从代码角度分析网站怎么做,iis7如何设置ip做网站目录 目录 一、基础用法 1.1 开始和结束 1.2 操作步骤 1.3 条件判断 1.4 并行处理 1.5 循环 1.6 分区 1.7 泳道 一、基础用法 1.1 开始和结束 开始一般使用start关键字;结束一般使用stop/end关键字。基础用法包括: start ... stopstart ...…

目录

目录

一、基础用法

1.1 开始和结束

1.2 操作步骤

1.3 条件判断

1.4 并行处理

1.5 循环

1.6 分区

1.7 泳道

一、基础用法

1.1 开始和结束

开始一般使用start关键字;结束一般使用stop/end关键字。基础用法包括:

  • start ... stop
  • start ... end
@startuml
start
:执行操作A;
stop
@enduml

1.2 操作步骤

语法为 :operation,其中 operation 是你为该步骤定义的名称。例如:

@startuml
:开始;
:执行操作A;
:执行操作B;
:结束;
@enduml

1.3 条件判断

使用PlantUML语法通常使用if-else关键字。通常由三种语法:

  • if (...) then (...) ... [else (...) ...] endif
  • if (...) is (...) then ... [else (...) ...] endif
  • if (...) equals (...) then ... [else (...) ...] endif

例如:

@startuml
:开始;
:执行操作A;
:判断是否满足条件;
if (满足条件) then (是):执行操作B;
else (否):执行操作C;
endifif (条件) is (是) then:执行操作D;
else:执行操作E;
endifif (条件) equals (是) then:执行操作F;
else:执行操作G;
endif
:结束;
@enduml

多分支判断使用elseif关键字,其中包含水平模式、垂直模式;

  • 水平模式
@startuml
start
if (condition A) then (yes):Text 1;
elseif (condition B) then (yes):Text 2;stop
(no) elseif (condition C) then (yes):Text 3;
(no) elseif (condition D) then (yes):Text 4;
else (nothing):Text else;
endif
stop
@enduml

  • 垂直模式:使用!pragma useVerticalIf on进入垂直模式。
​@startuml
start
!pragma useVerticalIf on
if (condition A) then (yes):Text 1;
elseif (condition B) then (yes):Text 2;stop
(no) elseif (condition C) then (yes):Text 3;
(no) elseif (condition D) then (yes):Text 4;
else (nothing):Text else;
endif
stop
@enduml

1.4 并行处理

并行处理可以用 fork 和 join 来表示,fork 表示分支开始,merge 表示分支合并。

  • fork ... fork again ... end fork
  • fork ... fork again ... end merge
@startuml
start
fork:action 1;
fork again:action 2;
end forkfork:action 3;
fork again:action 4;
end merge
stop
@enduml

1.5 循环

循环包括无条件循环(Repeat loop)、有条件循环(While loop),典型的写法包括:

  • repeat ... repeat while (...) is (...) not (...)
  • repeat ... backward ... repeat while (...) is (...) -> (...)
  • while (...) end while

repeat案例:

@startuml
startrepeat:read data;:generate diagrams;
repeat while (more data?) is (yes) not (no)repeat:read data;:generate diagrams;
backward :write data;
repeat while (more data?) is (yes)
-> no;:next action;while (check filesize ?) is (not empty):read file;backward:log;
endwhile (empty)
:close file;stop
@enduml

1.6 分区

在PlantUML中,Partition 是用来定义分区的关键字,它允许你将多个活动组合在一起。

@startuml
start
partition Initialization {:read config file;:init internal variable;
}
partition Running {:wait for user interaction;:print information;
}stop
@enduml

1.7 泳道

在PlantUML中,使用|Swimlane1|来表示泳道,例如:

@startuml
|Swimlane1|
start
:foo1;
|#AntiqueWhite|Swimlane2|
:foo2;
:foo3;
|Swimlane1|
:foo4;
|Swimlane2|
:foo5;
stop
@enduml

参考资料:New Activity Diagram Beta syntax and features

http://www.ds6.com.cn/news/28581.html

相关文章:

  • 网站流量变现关键字有哪些
  • 企业注册邮箱的步骤手把手教你优化网站
  • 网站如何做聚合页面附近的教育培训机构有哪些
  • 没有备案的网站可以用ip访问吗seo是什么单位
  • 措勤网站建设黄页88网推广服务
  • 用dedecms做两个一样的网站汕头网站推广
  • 无锡网站建设书生商友2019年度最火关键词
  • 企业网页设计模板图片石家庄网站优化
  • 如何做一张图片的网站长春网站推广公司
  • 长春长春网站建设最近三天发生的重要新闻
  • 网站建设 好牛dw网页制作教程
  • 网站建设 业务网络营销推广专家
  • 花都营销网站建设网站优化排名推荐
  • 多配色创意metro风格企业网站织梦模板seo工资
  • 专做茶叶的网站厦门人才网唯一官方网站登录入口
  • 在天津做网站的公司谷歌商店官网
  • 做网站没有签合同可以退款吗成都seo培训
  • html网站欣赏网站seo主要是做什么的
  • 南充市企业网站建设百度关键词指数工具
  • 网站查询域名解析ip今日新闻国际头条新闻
  • wordpress内存使用seo标签怎么优化
  • 浙江邮电工程建设有限公司网站seo资料网
  • 网站架构演变流程河南省疫情最新情况
  • 上海网站制作费用网络营销方法有哪几种
  • 做百度推广首先要做网站吗百度推广多少钱
  • 怎么用源码做网站视频北京新闻最新消息
  • 如何做黄色网站赚钱网站seo分析案例
  • wordpress支持伪静态seo是什么意思蜘蛛屯
  • 高速公路建设网站北京网站建设专业公司
  • wordpress 日志路径济南seo排名搜索