SemanticRef
类型: 类
领域: 建模与几何
推荐导入: from cadflow import SemanticRef
签名
class SemanticRef(graph_id: 'str', node_id: 'str', entity_type: 'str', entity_id: 'str') -> None
功能说明
SemanticRef 是 CadFlow 建模与几何领域的公共类。
原始 API 说明
Stable reference to a semantic model entity in the recorded graph.
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
graph_id | 'str' | 是 | - | 源码 Docstring 未单独说明。 |
node_id | 'str' | 是 | - | 源码 Docstring 未单独说明。 |
entity_type | 'str' | 是 | - | 源码 Docstring 未单独说明。 |
entity_id | 'str' | 是 | - | 源码 Docstring 未单独说明。 |
返回值
类型: None
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
数据字段
| 名称 | 类型 | 默认值 |
|---|---|---|
graph_id | 'str' | required |
node_id | 'str' | required |
entity_type | 'str' | required |
entity_id | 'str' | required |
行为与约束
- 实例是不可变 dataclass 值;更新式工作流会返回替代值。
导入检查
from cadflow import SemanticRef