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用于收货和开票。"
相关推荐
这是谁的博客?26 分钟前
AI Agent 架构设计与实现原理深度解析
人工智能·ai·langchain·agent·架构设计
星辰AI1 小时前
LLM 安全与对齐技术:构建可信赖的人工智能
人工智能·ai·语言模型
No8g攻城狮2 小时前
【AI工具】wsl2 + ubuntu22.04安装部署sub2api详细教程
人工智能·ai·go·vue
笨蛋©2 小时前
[实战] 2026年CNC加工质量管理:从数字化图纸识别到自动化检验计划(FAI)全流程
ai·数字化·cad·质量管理·图纸识别
YueJoy.AI2 小时前
创业团队如何管理远程工作
人工智能·ai·语言模型
兮山与3 小时前
Python基础语法
ai
Johnny20043 小时前
问答式AI vs 智能体:它们有什么不同?
ai·大模型·agent·入门教程·智能体
@蔓蔓喜欢你3 小时前
Jest 测试框架:构建可靠的测试体系
人工智能·ai
alwaysrun3 小时前
AI之智能体Agent简介
人工智能·ai·agent·runtime·认知闭环
星辰AI4 小时前
大模型对抗攻击与防御:保护 AI 系统安全
人工智能·ai·语言模型