You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.9 KiB

  1. ```mermaid
  2. classDiagram
  3. %% 全局耗材容器
  4. class A8kConsumableContainer
  5. class TipContainer {
  6. }
  7. class ReactionPlateContainer {
  8. }
  9. class LittBottleContainer {
  10. public Integer projId; //项目ID
  11. public String projName; //项目名称
  12. public String projShortName;//项目缩写名称
  13. public LittleBottleConsumableType type;
  14. public String lotId = ""; //批次号
  15. public String color = ""; //颜色
  16. public Integer num = 0;
  17. public Integer reserveNum = 0;
  18. public Boolean isInstall = false;
  19. }
  20. class LarBottleContainer
  21. A8kConsumableContainer "1" --> "3" TipContainer
  22. A8kConsumableContainer "1" --> "6" ReactionPlateContainer
  23. A8kConsumableContainer "1" --> "6" LittBottleContainer
  24. A8kConsumableContainer "1" --> "6" LarBottleContainer
  25. class ConsumablesMgrService {
  26. + unInstallConsumable() // 卸载耗材
  27. + useReserveConsumable() // 使用耗材
  28. + reserveConsumable() // 预留耗材
  29. }
  30. ConsumablesMgrService --> A8kConsumableContainer
  31. class ConsumableInfo {
  32. public String lotid;
  33. public ConsumableGroup group; // 耗材组
  34. public Integer pos; // 当前耗材信息属于哪个耗材组
  35. }
  36. ```
  37. ```mermaid
  38. ---
  39. title: 耗材扫描时序图
  40. ---
  41. sequenceDiagram
  42. actor user
  43. participant ConsumableScanControler
  44. participant AppConsumablesScanService
  45. participant GStateMgrService
  46. participant ConsumablesScanCtrlService
  47. user->>+ConsumableScanControler: 开始扫描
  48. AppConsumablesScanService->>+GStateMgrService: isDeviceInited
  49. GStateMgrService->>-AppConsumablesScanService: 设备初始化结果
  50. alt 未初始化
  51. ConsumableScanControler->>+AppConsumablesScanService: scanConsumables
  52. AppConsumablesScanService->>-ConsumableScanControler: 抛出系统未初始化异常
  53. else 初始化完成
  54. AppConsumablesScanService->>+ConsumablesScanCtrlService: doScanConsumablesAction
  55. ConsumablesScanCtrlService->>-AppConsumablesScanService: scanRawResults原始扫描结果
  56. loop 遍历扫描结果
  57. AppConsumablesScanService->>+AppConsumablesScanService: parseScanResult
  58. AppConsumablesScanService->>-AppConsumablesScanService: 解析后的结果
  59. end
  60. loop 遍历解析后的扫描结果
  61. AppConsumablesScanService->>+AppConsumablesScanService: loadingConsumables
  62. AppConsumablesScanService->>-AppConsumablesScanService: 解析后的结果
  63. end
  64. ConsumableScanControler->>+AppConsumablesScanService: scanConsumables
  65. AppConsumablesScanService->>-ConsumableScanControler:result
  66. end
  67. ConsumableScanControler->>-user:ConsumablesScanResultPacket
  68. ```