flync_4_metadata¶
Metadata¶
Hint
Components in a FLYNC configuration, including the configuration itself, hold additional metadata. This helps keeping track of changes and compatibilities.
- class BaseMetadata¶
Bases:
FLYNCBaseModelBase class for model and system metadata definitions.
This class provides common metadata attributes shared across different configuration artifacts, such as systems, ECUs, and services. It defines identifying and versioning information used for traceability and documentation.
Parameters¶
- typestr
Type identifier of the metadata object.
- authorstr
Author or organization responsible for the entity definition.
- compatible_flync_version
BaseVersion FLYNC version with which this model is compatible.
- extensionsdict of str to str, optional
Optional map of extension keys and values for custom or tool-specific metadata.
- class SystemMetadata¶
Bases:
BaseMetadataRepresents system-level metadata.
This metadata describes the overall system context, including OEM and platform information.
Parameters¶
- type: Literal[“system”].
Literal identifier specifying System metadata.
- oemstr, optional
Original Equipment Manufacturer responsible for the system.
- platformstr, optional
Target platform or system family identifier.
- variantstr, optional
System variant of the platform.
- release:
BaseVersion Versioning information about the system.
- class ECUMetadata¶
Bases:
BaseMetadataRepresents metadata for an Electronic Control Unit (ECU).
This metadata combines system-level identification with optional hardware and software descriptions.
Parameters¶
- typeLiteral[“ecu”]
Literal identifier specifying ECU metadata.
- hardware
HardwareBaseMetadata| None Optional hardware metadata associated with the ECU.
- software
SoftwareBaseMetadata| None Optional software metadata associated with the ECU.
- class EmbeddedMetadata¶
Bases:
BaseMetadataRepresents metadata for an embedded platform.
Parameters¶
- typeLiteral[“embedded”]
Literal identifier specifying an embedded device.
- hardware
HardwareBaseMetadata| None Optional hardware metadata associated with the embedded device.
- app
SoftwareBaseMetadata| None Optional software metadata for the application.
- bootloader
SoftwareBaseMetadata| None Optional software metadata for the bootloader.
- target_systemstr
Name of the Embedded target device.
- class SocketsPerVLANMetadata¶
Bases:
BaseMetadataRepresents metadata for sockets-per-VLAN configuration.
Parameters¶
- type: Literal[“sockets_per_vlan”]
Literal identifier specifying sockets-per-VLAN metadata.
- class SOMEIPServiceMetadata¶
Bases:
BaseMetadataRepresents metadata for a SOME/IP service interface.
Parameters¶
- type: Literal[“someip_service”]
Literal identifier specifying SOME/IP service metadata.
Versioning¶
Hint
Versioning inside of the metadata can be either done by following Semantic Versioning (https://semver.org/) or pep440 versioning (https://peps.python.org/pep-0440/). Per default semver is used.
- class BaseVersion¶
Bases:
FLYNCBaseModelRepresents a version descriptor used within the model.
Parameters¶
- version_schemaLiteral[“semver”, “pep440”]
Versioning scheme that defines how the version string is interpreted.
- versionstr
Version value expressed according to the selected
version_schema. Must be provided as a raw string.
- class HardwareBaseMetadata¶
Bases:
BaseVersionRepresents hardware-related metadata.
This model describes supplier and versioning information for hardware components.
Parameters¶
- supplierstr, optional
Name of the hardware supplier.
- product_idstr, optional
Supplier-specific part identification.
- class SoftwareBaseMetadata¶
Bases:
BaseVersionRepresents software-related metadata.
This model describes versioning information for software components.