UML在AI中的识别

1、plantuml

2、Mermaid

Mermaid 复制代码
classDiagram
    direction LR
    class Customer {
        -String name
        -String customerId
        +placeOrder(products) Order
        +getOrderHistory() List~Order~
    }

    class Order {
        -String orderId
        -Date orderDate
        -OrderStatus status
        +calculateTotal() double
        +addProduct(product, quantity)
    }

    class Product {
        -String productId
        -String name
        -double price
        +updatePrice(newPrice)
        +getStock() int
    }

    class Address {
        -String street
        -String city
        -String zipCode
        +getFullAddress() String
    }

    Customer "1" --> "*" Order : 拥有
    Order "*" --> "*" Product : 包含
    Customer "1" --> "1..*" Address : 使用
    Order ..> Address : 发往

    note for Customer "顾客可以有一个或多个地址,\n用于收货和开票。"
相关推荐
ai小陈1 小时前
PyTorch DataLoader数据加载性能排查:GPU利用率低的实操指南
人工智能·pytorch·python·深度学习·ai·gpu算力
2601_962078034 小时前
百度双重主要上市9月1日生效,“全栈AI”如何打开估值空间?
百度·ai·双重上市·估值空间·港股通
CaseyWei9 小时前
Harness 架构 Multi‑Agent(多智能体)完整深度解析
人工智能·ai·架构·harness
eaglewgs9 小时前
关于AI书写测试用例,谈一下我的思考
人工智能·测试开发·ai·测试用例·agent·测试经验·agent测试开发
知了一笑10 小时前
企业的卷味,组织的AI味
人工智能·ai·ai工作流
icsocket11 小时前
国内测试稳定可靠的AI算力芯片测试座厂家
ai
西索斯coding11 小时前
doubao-seed-2.1-turbo 调用一直 401 怎么办?pro 版同样的 Key 却正常——5 分钟排查定位指南
java·服务器·数据库·ai
俊哥V13 小时前
每日 AI 研究简报 · 2026-09-01
人工智能·ai
Wendy不吃榴莲13 小时前
# AI短剧教程 - 《后西游记》开播后,AI影视为什么更考验“连续讲故事”?
人工智能·笔记·学习·ai·视频
木圭的AI时代指南13 小时前
AI江湖录①·斩杀线
人工智能·ai