airframe

class Component

Bases: CommonBaseModel

Represents a component within an aircraft’s system, detailing its specifications, functionalities, and interrelations.

name

The name of the component, acting as a unique identifier.

Type:

Optional[str]

description

A brief description of the component’s purpose and functionality.

Type:

Optional[str]

geometry

Geometric information of the component, if applicable.

Type:

Optional[Geometry]

parameters

Operational or physical parameters associated with the component.

Type:

Optional[Parameters]

metadata

Additional metadata providing context or details about the component.

Type:

Optional[Metadata]

subcomponents

A list of sub-components, if any, within this component.

Type:

Optional[List[Component]]

requirements

Specific requirements associated with this component.

Type:

Optional[List[Requirement]]

performance

List of disciplines analyzing the component.

Type:

Optional[List[Discipline]]

behavior

Specific behaviors for the component.

Type:

Optional[List[Behavior]]

Raises:

ValueError – If any string field is empty, ensuring all components have meaningful identifiers and descriptions.

Methods:

validate_non_empty_string(value)

Validates that the name and description fields are not empty or whitespace only.

Attributes:

__pydantic_setattr_handlers__

__setattr__ handlers.

classmethod validate_non_empty_string(value)

Validates that the name and description fields are not empty or whitespace only.

Parameters:

value (Optional[str]) – The value to validate.

Returns:

The validated string value.

Return type:

Optional[str]

Raises:

ValueError – If the input value is empty or consists only of whitespace.

class Config

Bases: object

Pydantic model configuration.

__pydantic_setattr_handlers__: ClassVar[Dict[str, Callable[[BaseModel, str, Any], None]]] = {}

__setattr__ handlers. Memoizing the handlers leads to a dramatic performance improvement in __setattr__

Classes

Component

Represents a component within an aircraft's system, detailing its specifications, functionalities, and interrelations.