Skip to main content

PhysicalConnectionLayer

Kind: Class
Domain: Physical connections
Canonical import: from cadflow import PhysicalConnectionLayer

Signature

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

Description

Immutable physical connection graph associated with one assembly.

Other public imports

  • from cadflow.physical import PhysicalConnectionLayer

Parameters

NameTypeRequiredDefaultSource description
assembly_id'str'yes-Not explicitly described in the source docstring.
connections'tuple[PhysicalConnection, ...]'no()Not explicitly described in the source docstring.
length_unit'str'no'mm'Not explicitly described in the source docstring.
force_unit'str'no'N'Not explicitly described in the source docstring.
time_unit'str'no's'Not explicitly described in the source docstring.
metadata'dict[str, Any]'no&lt;factory&gt;Not explicitly described in the source docstring.

Returns

Type: None

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Data fields

NameTypeDefault
assembly_id'str'required
connections'tuple[PhysicalConnection, ...]'()
length_unit'str''mm'
force_unit'str''N'
time_unit'str''s'
metadata'dict[str, Any]'factory

Public members

MemberKindSignatureDescription
connection_idsmethod(self) -&gt; 'tuple[str, ...]'See the member signature.
connections_betweenmethod(self, component_a: 'str', component_b: 'str') -&gt; 'tuple[PhysicalConnection, ...]'See the member signature.
connections_for_componentmethod(self, component_id: 'str') -&gt; 'tuple[PhysicalConnection, ...]'See the member signature.
from_dictclass method(cls, data: 'Mapping[str, Any]') -&gt; "'PhysicalConnectionLayer'"See the member signature.
from_jsonclass method(cls, value: 'str | bytes | bytearray') -&gt; "'PhysicalConnectionLayer'"See the member signature.
get_connectionmethod(self, connection_id: 'str') -&gt; 'PhysicalConnection'See the member signature.
SCHEMA_VERSIONconstant-str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
to_dictmethod(self) -&gt; 'dict[str, Any]'See the member signature.
to_jsonmethod(self, *, indent: 'Optional[int]' = None) -&gt; 'str'See the member signature.
with_connectionmethod(self, connection: 'PhysicalConnection') -&gt; "'PhysicalConnectionLayer'"See the member signature.
without_connectionmethod(self, connection_id: 'str') -&gt; "'PhysicalConnectionLayer'"See the member signature.

Behavior and constraints

  • Instances are immutable dataclass values; update workflows return a replacement value.

Import check

from cadflow import PhysicalConnectionLayer

See also