跳到主要内容

PhysicalConnectionLayer

类型:
领域: 物理连接
推荐导入: from cadflow import PhysicalConnectionLayer

签名

class PhysicalConnectionLayer(assembly_id: 'str', connections: 'tuple[PhysicalConnection, ...]' = (), length_unit: 'str' = 'mm', force_unit: 'str' = 'N', time_unit: 'str' = 's', metadata: 'dict[str, Any]' = <factory>) -> None

功能说明

保存可验证、可序列化的降阶物理连接集合。

原始 API 说明

Immutable physical connection graph associated with one assembly.

其他公共导入路径

  • from cadflow.physical import PhysicalConnectionLayer

参数

名称类型必需默认值源码说明
assembly_id'str'-源码 Docstring 未单独说明。
connections'tuple[PhysicalConnection, ...]'()源码 Docstring 未单独说明。
length_unit'str''mm'源码 Docstring 未单独说明。
force_unit'str''N'源码 Docstring 未单独说明。
time_unit'str''s'源码 Docstring 未单独说明。
metadata'dict[str, Any]'&lt;factory&gt;源码 Docstring 未单独说明。

返回值

类型: None

源码 Docstring 未声明更多返回语义。

异常

源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。

数据字段

名称类型默认值
assembly_id'str'required
connections'tuple[PhysicalConnection, ...]'()
length_unit'str''mm'
force_unit'str''N'
time_unit'str''s'
metadata'dict[str, Any]'factory

公共成员

成员类型签名说明
connection_idsmethod(self) -&gt; 'tuple[str, ...]'见成员签名。
connections_betweenmethod(self, component_a: 'str', component_b: 'str') -&gt; 'tuple[PhysicalConnection, ...]'见成员签名。
connections_for_componentmethod(self, component_id: 'str') -&gt; 'tuple[PhysicalConnection, ...]'见成员签名。
from_dictclass method(cls, data: 'Mapping[str, Any]') -&gt; "'PhysicalConnectionLayer'"见成员签名。
from_jsonclass method(cls, value: 'str | bytes | bytearray') -&gt; "'PhysicalConnectionLayer'"见成员签名。
get_connectionmethod(self, connection_id: 'str') -&gt; 'PhysicalConnection'见成员签名。
SCHEMA_VERSIONconstant-str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
to_dictmethod(self) -&gt; 'dict[str, Any]'见成员签名。
to_jsonmethod(self, *, indent: 'Optional[int]' = None) -&gt; 'str'见成员签名。
with_connectionmethod(self, connection: 'PhysicalConnection') -&gt; "'PhysicalConnectionLayer'"见成员签名。
without_connectionmethod(self, connection_id: 'str') -&gt; "'PhysicalConnectionLayer'"见成员签名。

行为与约束

  • 实例是不可变 dataclass 值;更新式工作流会返回替代值。

导入检查

from cadflow import PhysicalConnectionLayer

相关内容