Application Purpose and Use#

The Function Designer is an application for viewing and editing Eclipse Autoapiframework Function Specifications.

Graphical user interface (GUI)#

meta model window

Tip

In addition to the standard file open dialog, the application provides drag-and-drop functionality. For quick access, users can open an existing .afs file by dragging it from the operating system’s file manager and dropping it onto the graphical user interface.

Command-line application (CLI)#

Alongside the graphical editor, the Function Designer provides a separate command-line executable, AutoAPIFunctionDesigner_SyntaxCheck.exe, for checking function specifications in automated workflows. It accepts one .afs file, checks its syntax against the bundled V04 meta model (the file autoapiframework_meta_model.yaml is loaded), and prints either a success message or details of the syntax error. The process exit code can be used by scripts and build pipelines to detect whether the check passed. As with the syntax check in the GUI, a successful check does not guarantee full compliance with every meta-model requirement.

Run the executable with the path to the specification:

AutoAPIFunctionDesigner_SyntaxCheck.exe speed_hazard_detection.afs

Examples of the supported execution scenarios:

  1. syntax validation without errors,

  2. syntax validation with reported errors, and

  3. invalid invocation due to a missing AFS file.

command-line application

Purpose#

The Autoapiframework Function Designer is a desktop editor for Eclipse Autoapiframework Function Specifications. It provides a human-readable view of function API metadata and preserves the YAML document structure when a specification is written again.

The application works with two related files:

  • A function specification (.afs), which describes one function’s data interfaces, parameters, scheduling, and error interfaces.

  • A meta model (YAML), which defines the supported interface types, properties, and enumerations used to interpret the function specification.

The current example meta model is examples/autoapiframework_metadata_V04.yaml.

Main Views#

When you open an .afs file, the application displays its contents in separate views:

Attributes

Shows the function name, version, meta-model reference, collection sizes, and full description.

Data interfaces

Shows entries from dataInterfaces. Columns are derived from the meta-model’s Data interface type.

Parameters

Shows entries from parameters. Columns are derived from the meta-model’s Parameter interface type.

Scheduling

Shows entries from scheduling. Columns are derived from the meta-model’s Scheduling interface type, including execution supervision details.

Error interfaces

Shows entries from errorInterfaces. Columns are derived from the meta-model’s Error interface type and describe function-specific diagnostic conditions separately from a runnable’s generic execution result.

Properties that occur in a specification but are not defined by the meta model are retained and displayed as additional columns. This allows newer or project-specific metadata to remain visible during inspection.

function specification window

Typical Workflow#

  1. Start the application. It loads the configured meta model, if available. If the file cannot be found, the application automatically looks for autoapiframework_meta_model.yaml.

  2. Open an existing .afs file.

  3. Confirm that the referenced meta-model version is supported.

  4. Inspect attributes, data interfaces, parameters, scheduling, and error interfaces in their respective views.

  5. Use ‘Load meta model…’ if the meta model is not found in the same directory as the executable, or if you need to load a different compatible meta model. You must restart the application for the change to take effect.

  6. Use ‘Write .afs file as…’ to save the specification under a new name.

  7. Use ‘Add via VSS’ to import signal information from a VSS file.

The editor keeps the parsed YAML tree in memory. When the file is written, key order, block-style layout, folded descriptions, and quoting are preserved as far as supported by the YAML writer.

Limitations#

The ‘Create API’ functionality is still under development.

Tip

To create a valid specification file, you must carefully review the meta model specification. The syntax check will help identify obvious errors, but it cannot guarantee full compliance with the meta model.

Working with VSS Signals#

The ‘Add via VSS’ workflow imports signal information from a VSS file. The application uses the vspec executable provided by vss-tools to convert the selected .vspec file to JSON, after which the signal can be added to the function specification.

The official VSS repository can be cloned with:

git clone https://github.com/COVESA/vehicle_signal_specification.git

For a direct conversion, run:

vspec export json --vspec spec/Vehicle/Vehicle.vspec --output VehicleSignalSpecification.json
signal selection window

After you click ‘Add via VSS’, you are prompted to select a VSS file. The signals it contains are then displayed.

If an error message appears, the selected VSS file may depend on other VSS files. In this case, open the root VSS file instead.

error opening VSS file window

Examples#

The examples directory contains ready-to-use specifications, including:

  • speed_hazard_detection.afs

  • vehicle_speed_fusion_multirate.afs

  • wheel_speed_plausibility_check.afs

These files can be opened to explore data interfaces, parameters, scheduling, execution supervision, and function-specific error interfaces.

Application Menu Overview#

settings window

The Function Designer provides an interface for creating and managing function specifications. It requires a meta model file in the same directory as the executable to operate correctly. If you change this setting, restart the application for the change to take effect.

If you select the root directory of a cloned VSS/VSpec repository, the Function Designer can automatically retrieve version information from it.

Tip

The application checks the syntax before saving the specification. To skip this check, disable it in the settings.

file menu

The File menu contains the main file-related commands.

help menu

In addition to the help documentation, the application can check whether the COVESA tools are installed correctly. This information can help with troubleshooting and verifying that all required dependencies are available.

The Quick Tips section provides concise guidance on using the Function Designer effectively, highlighting common tasks and best practices.

quick tips