ToleranceGraph
Kind: Class
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import ToleranceGraph
Signature
class ToleranceGraph(expression_graph: 'ExpressionGraph') -> 'None'
Description
Tolerance requirements attached to one expression graph.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
expression_graph | 'ExpressionGraph' | yes | - | 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.
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
from_dict | class method | (cls, data: 'Mapping[str, Any]', expression_graph: 'ExpressionGraph') -> "'ToleranceGraph'" | See the member signature. |
require | method | (self, value: 'ScalarLike', tolerance: 'ToleranceLike', *, method: 'ToleranceMethod' = 'worst_case', name: 'str | None' = None, requirement_id: 'str | None' = None, tolerance_unit: 'UnitLike | None' = None) -> 'ToleranceRequirement' | Declare a target tolerance and register its expression dependencies. |
requirement_count | property | - | See the member signature. |
requirements | property | - | See the member signature. |
to_dict | method | (self) -> 'Dict[str, Any]' | See the member signature. |
validate | method | (self, *, raise_on_failure: 'bool' = False) -> 'ToleranceReport' | See the member signature. |
Behavior and constraints
- The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.
Import check
from cadflow import ToleranceGraph