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.

Expand for a YAML example - 📄 apps/application1.flync.yaml
service_consumer_refs:
  - service_name: Enhanced Testability Services
    instance_id: 1
    major_version: 1
service_provider_refs:
  - service_name: Enhanced Testability Services
    instance_id: 1
    major_version: 1
class App

Bases: FLYNCBaseModel

Definition 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: FLYNCBaseModel

Reference 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: FLYNCBaseModel

Reference 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.

Expand for a YAML example - 📄 app_bindings.flync.yaml
app_refs:
- application1
class AppBindings

Bases: FLYNCBaseModel

Reference 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.