flync_4_app¶
The app layer describes applications of a system in a top-level apps directory.
Applications are then bind inside an ECU Controller in an optional app_bindings file.
Applications¶
Each file in the top-level apps directory defines one set that maps onto transport services.
The set name is implied from the filename on disk.
- class App¶
Bases:
FLYNCBaseModelDefinition of an application in the system.
Parameters¶
- name: str
Name of this application. Implied from filename.
- service_consumer_refs: list of
ServiceConsumerReference Reference of all Consumer Instances of this application.
- service_provider_refs: list of
ServiceProviderReference Reference of all Provider Instances of this application.
- class ServiceConsumerReference¶
Bases:
FLYNCBaseModelReference to resolve a SOME/IP Consumer Instance.
Parameters¶
- type: Literal[“consumer”]
Type of the service reference.
- service_name: str
Name of the referenced service instance.
- instance_id: int
Instance ID of the referenced service instance.
- major_version: int
Major version of the referenced service instance.
- class ServiceProviderReference¶
Bases:
FLYNCBaseModelReference to resolve a SOME/IP Provider Instance.
Parameters¶
- type: Literal[“provider”]
Type of the service reference.
- service_name: str
Name of the referenced service instance.
- instance_id: int
Instance ID of the referenced service instance.
- major_version: int
Major version of the referenced service instance.
- minor_version: int
Minor version of the referenced service instance.
App Bindings¶
Each controller can declare one app_bindings.flync.yaml file where system applications are referenced.
- class AppBindings¶
Bases:
FLYNCBaseModelReference of Applications a Controller should bind to.
Parameters¶
- app_refs: list of str
List of application names to bind to.
Private Attributes¶
- _appslist of
App Applications to bind to. Managed internally.