From d9728c223922b0dbd5970e23acdc13fd7a7cd3c3 Mon Sep 17 00:00:00 2001 From: chenp Date: Thu, 7 Oct 2021 21:05:23 +0800 Subject: [PATCH] add ass --- samples/ass.md | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ samples/ass.puml | 62 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 samples/ass.md create mode 100644 samples/ass.puml diff --git a/samples/ass.md b/samples/ass.md new file mode 100644 index 0000000..5aee24f --- /dev/null +++ b/samples/ass.md @@ -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 deviceList +-List satelliteList +-List fileSendingList +-Map deviceMap +-Map satelliteMap +-Map 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 listDeviceIds() ++List listSatelliteIds() ++void addFileToDevice(String deviceId, String filename, String content) ++EntityInfoResponse getInfo(String id) ++void simulate() ++List communicableEntitiesInRange(String id) ++void sendFile(String fileName, String fromId, String toId) +} + +Device - Satellite : sendFile > +Satellite - Device : sendFile > + +Device <|.. BlackoutController +Satellite <|.. BlackoutController + +@enduml +``` \ No newline at end of file diff --git a/samples/ass.puml b/samples/ass.puml new file mode 100644 index 0000000..d509b6e --- /dev/null +++ b/samples/ass.puml @@ -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 deviceList + -List satelliteList + -List fileSendingList + -Map deviceMap + -Map satelliteMap + -Map 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 listDeviceIds() + +List listSatelliteIds() + +void addFileToDevice(String deviceId, String filename, String content) + +EntityInfoResponse getInfo(String id) + +void simulate() + +List communicableEntitiesInRange(String id) + +void sendFile(String fileName, String fromId, String toId) +} + +Device - Satellite : sendFile > +Satellite - Device : sendFile > + +Device <|.. BlackoutController +Satellite <|.. BlackoutController + +@enduml \ No newline at end of file