FLYNC Model¶
Hint
The main entry point for any FLYNC Model is this class.
- class FLYNCModel¶
Bases:
FLYNCBaseModelRepresents the top-level FLYNC configuration model for a system.
This model aggregates all ECUs, system topology, metadata, and general configuration settings for the entire system.
Parameters¶
- ecuslist of
ECU List of ECU definitions included in the system.
- topology
FLYNCTopology The system-wide topology including external ECU connections and optional multicast paths.
- metadata
SystemMetadata System-level metadata including OEM, platform, and hardware/software information.
- general
FLYNCGeneralConfig , optional Optional general configuration settings applicable system-wide.
- validate_unique_ips()¶
Validate all IPs are unique system wide
- get_all_ecus()¶
Return a list of all ECU names.
- get_ecu_by_name(ecu_name: str)¶
Retrieve an ECU by name.
- get_all_controllers()¶
Return a list of all controllers in all ECUs.
- get_all_interfaces_names()¶
Return all the controller interface names
- get_interfaces_for_ecu(ecu_name: str)¶
Return a list of all interfaces for a given ECU.
- get_system_topology_info()¶
Return system topology details.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context: Any, /) None¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- ecuslist of