Compare commits
10 Commits
971df3b6ab
...
master
Author | SHA1 | Date | |
---|---|---|---|
346ce08750 | |||
93d5bd0860 | |||
b29c1cbe43 | |||
db6ce1973a | |||
915b16f0e6 | |||
![]() |
dccb340737 | ||
![]() |
d9728c2239 | ||
a5a0b094a3 | |||
![]() |
48b447f3db | ||
![]() |
d5573d6c5c |
74
samples/ass.md
Normal file
74
samples/ass.md
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
---
|
||||||
|
puppeteer:
|
||||||
|
landscape: false
|
||||||
|
format: "A4"
|
||||||
|
timeout: 3000
|
||||||
|
export_on_save:
|
||||||
|
puppeteer: true
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
```plantuml
|
||||||
|
@startuml
|
||||||
|
|
||||||
|
!include https://deep-tek.com/puml/core.puml
|
||||||
|
|
||||||
|
|
||||||
|
class Satellite {
|
||||||
|
-String satelliteId
|
||||||
|
-String type
|
||||||
|
-Angle position
|
||||||
|
-double height
|
||||||
|
+setPosition
|
||||||
|
}
|
||||||
|
class StandardSatellite {
|
||||||
|
-int speed
|
||||||
|
-int getFileSpeed
|
||||||
|
}
|
||||||
|
class ShrinkingSatellite {
|
||||||
|
-int speed
|
||||||
|
-int getFileSpeed
|
||||||
|
}
|
||||||
|
class RelaySatellite {
|
||||||
|
-int speed
|
||||||
|
-int getFileSpeed
|
||||||
|
}
|
||||||
|
Satellite <|- StandardSatellite
|
||||||
|
Satellite <|- ShrinkingSatellite
|
||||||
|
Satellite <|- RelaySatellite
|
||||||
|
|
||||||
|
class Device {
|
||||||
|
-String deviceId
|
||||||
|
-String type
|
||||||
|
-Angle position
|
||||||
|
+setPosition
|
||||||
|
}
|
||||||
|
|
||||||
|
class BlackoutController {
|
||||||
|
-List<String> deviceList
|
||||||
|
-List<String> satelliteList
|
||||||
|
-List<String> fileSendingList
|
||||||
|
-Map<String, Device> deviceMap
|
||||||
|
-Map<String, Satellite> satelliteMap
|
||||||
|
-Map<String, EntityInfoResponse> map
|
||||||
|
+void createDevice(String deviceId, String type, Angle position)
|
||||||
|
+void removeDevice(String deviceId)
|
||||||
|
+void createSatellite(String satelliteId, String type, double height, Angle position)
|
||||||
|
+void removeSatellite(String satelliteId)
|
||||||
|
+List<String> listDeviceIds()
|
||||||
|
+List<String> listSatelliteIds()
|
||||||
|
+void addFileToDevice(String deviceId, String filename, String content)
|
||||||
|
+EntityInfoResponse getInfo(String id)
|
||||||
|
+void simulate()
|
||||||
|
+List<String> communicableEntitiesInRange(String id)
|
||||||
|
+void sendFile(String fileName, String fromId, String toId)
|
||||||
|
}
|
||||||
|
|
||||||
|
Device - Satellite : sendFile >
|
||||||
|
Satellite - Device : sendFile >
|
||||||
|
|
||||||
|
Device <|.. BlackoutController
|
||||||
|
Satellite <|.. BlackoutController
|
||||||
|
|
||||||
|
@enduml
|
||||||
|
```
|
62
samples/ass.puml
Normal file
62
samples/ass.puml
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
@startuml
|
||||||
|
|
||||||
|
!include https://deep-tek.com/puml/core.puml
|
||||||
|
|
||||||
|
|
||||||
|
class Satellite {
|
||||||
|
-String satelliteId
|
||||||
|
-String type
|
||||||
|
-Angle position
|
||||||
|
-double height
|
||||||
|
+setPosition
|
||||||
|
}
|
||||||
|
class StandardSatellite {
|
||||||
|
-int speed
|
||||||
|
-int getFileSpeed
|
||||||
|
}
|
||||||
|
class ShrinkingSatellite {
|
||||||
|
-int speed
|
||||||
|
-int getFileSpeed
|
||||||
|
}
|
||||||
|
class RelaySatellite {
|
||||||
|
-int speed
|
||||||
|
-int getFileSpeed
|
||||||
|
}
|
||||||
|
Satellite <|- StandardSatellite
|
||||||
|
Satellite <|- ShrinkingSatellite
|
||||||
|
Satellite <|- RelaySatellite
|
||||||
|
|
||||||
|
class Device {
|
||||||
|
-String deviceId
|
||||||
|
-String type
|
||||||
|
-Angle position
|
||||||
|
+setPosition
|
||||||
|
}
|
||||||
|
|
||||||
|
class BlackoutController {
|
||||||
|
-List<String> deviceList
|
||||||
|
-List<String> satelliteList
|
||||||
|
-List<String> fileSendingList
|
||||||
|
-Map<String, Device> deviceMap
|
||||||
|
-Map<String, Satellite> satelliteMap
|
||||||
|
-Map<String, EntityInfoResponse> map
|
||||||
|
+void createDevice(String deviceId, String type, Angle position)
|
||||||
|
+void removeDevice(String deviceId)
|
||||||
|
+void createSatellite(String satelliteId, String type, double height, Angle position)
|
||||||
|
+void removeSatellite(String satelliteId)
|
||||||
|
+List<String> listDeviceIds()
|
||||||
|
+List<String> listSatelliteIds()
|
||||||
|
+void addFileToDevice(String deviceId, String filename, String content)
|
||||||
|
+EntityInfoResponse getInfo(String id)
|
||||||
|
+void simulate()
|
||||||
|
+List<String> communicableEntitiesInRange(String id)
|
||||||
|
+void sendFile(String fileName, String fromId, String toId)
|
||||||
|
}
|
||||||
|
|
||||||
|
Device - Satellite : sendFile >
|
||||||
|
Satellite - Device : sendFile >
|
||||||
|
|
||||||
|
Device <|.. BlackoutController
|
||||||
|
Satellite <|.. BlackoutController
|
||||||
|
|
||||||
|
@enduml
|
@ -4,7 +4,7 @@ puppeteer:
|
|||||||
format: "A4"
|
format: "A4"
|
||||||
timeout: 3000
|
timeout: 3000
|
||||||
export_on_save:
|
export_on_save:
|
||||||
puppeteer: true
|
puppeteer: true
|
||||||
---
|
---
|
||||||
|
|
||||||
[TOC]
|
[TOC]
|
||||||
@ -36,11 +36,29 @@ export_on_save:
|
|||||||
其他服务 -> 用户: 信息test
|
其他服务 -> 用户: 信息test
|
||||||
@enduml
|
@enduml
|
||||||
```
|
```
|
||||||
|
# 时序图1
|
||||||
|
```plantuml
|
||||||
|
@startuml
|
||||||
|
|
||||||
|
!include https://deep-tek.com/puml/core.puml
|
||||||
|
|
||||||
|
用户 -> 认证中心: 登录操作
|
||||||
|
认证中心 -> 缓存: 存放(key=token+ip,value=token)token
|
||||||
|
|
||||||
|
用户 <- 认证中心 : 认证成功返回token
|
||||||
|
用户 -> 认证中心: 下次访问头部携带token认证
|
||||||
|
认证中心 <- 缓存: key=token+ip获取token
|
||||||
|
其他服务 <- 认证中心: 存在且校验成功则跳转到用户请求的其他服务
|
||||||
|
其他服务 -> 用户: 信息test
|
||||||
|
@enduml
|
||||||
|
```
|
||||||
|
|
||||||
# 时序图-相对路径1
|
# 时序图-相对路径1
|
||||||
|
|
||||||
```plantuml
|
```plantuml
|
||||||
@startuml
|
@startuml
|
||||||
!include ./core.puml
|
' !include ./core.puml
|
||||||
|
!include https://deep-tek.com/puml/core.puml
|
||||||
|
|
||||||
用户 -> 认证中心: 登录操作1
|
用户 -> 认证中心: 登录操作1
|
||||||
认证中心 -> 缓存: 存放(key=token+ip,value=token)token
|
认证中心 -> 缓存: 存放(key=token+ip,value=token)token
|
||||||
@ -56,7 +74,11 @@ export_on_save:
|
|||||||
|
|
||||||
```plantuml
|
```plantuml
|
||||||
@startuml
|
@startuml
|
||||||
!include ../puml/core.puml
|
' !include ../puml/core.puml
|
||||||
|
!include https://deep-tek.com/puml/core.puml
|
||||||
|
|
||||||
|
scale max 800 width
|
||||||
|
scale max 800 height
|
||||||
|
|
||||||
用户 -> 认证中心: 登录操作2
|
用户 -> 认证中心: 登录操作2
|
||||||
认证中心 -> 缓存: 存放(key=token+ip,value=token)token
|
认证中心 -> 缓存: 存放(key=token+ip,value=token)token
|
||||||
@ -78,7 +100,9 @@ export_on_save:
|
|||||||
|
|
||||||
```plantuml
|
```plantuml
|
||||||
@startuml
|
@startuml
|
||||||
!include https://deep-tek.com/puml/cerulean/puml-theme-cerulean.puml
|
' !include https://deep-tek.com/puml/cerulean/puml-theme-cerulean.puml
|
||||||
|
' help themes
|
||||||
|
!theme bluegray
|
||||||
|
|
||||||
participant participant as Foo
|
participant participant as Foo
|
||||||
actor actor as Foo1
|
actor actor as Foo1
|
||||||
|
@ -4,7 +4,7 @@ puppeteer:
|
|||||||
format: "A4"
|
format: "A4"
|
||||||
timeout: 3000
|
timeout: 3000
|
||||||
export_on_save:
|
export_on_save:
|
||||||
puppeteer: true
|
puppeteer: true
|
||||||
---
|
---
|
||||||
|
|
||||||
# 时序图
|
# 时序图
|
||||||
@ -20,3 +20,21 @@ Tomcat -> GitLab: Nice to meet you.
|
|||||||
Tomcat <-- GitLab: Nice to meet you too.
|
Tomcat <-- GitLab: Nice to meet you too.
|
||||||
@enduml
|
@enduml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# 引入模块
|
||||||
|
|
||||||
|
```plantuml
|
||||||
|
@startuml
|
||||||
|
!include <C4/C4_Container>
|
||||||
|
|
||||||
|
Person(personAlias, "Label", "Optional Description")
|
||||||
|
Container(containerAlias, "Label", "Technology", "Optional Description")
|
||||||
|
System(systemAlias, "Label", "Optional Description")
|
||||||
|
|
||||||
|
System_Ext(extSystemAlias, "Label", "Optional Description")
|
||||||
|
|
||||||
|
Rel(personAlias, containerAlias, "Label", "Optional Technology")
|
||||||
|
|
||||||
|
Rel_U(systemAlias, extSystemAlias, "Label", "Optional Technology")
|
||||||
|
@enduml
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user