The Hello World Example contains the necessary ARXML files that you need for modeling the application.

notice

File location: ./Examples/amsr-vector-app-example-hello-world/model

 

Model
Model

The Models provided in the Hello World Application

Model file

Use

Description

AUTOSAR_MOD_StandardTypes.arxml

Datatype Definition

Contains the AUTOSAR standard datatypes

MyAdaptiveMachine.arxml

Machine Configuration

Contains the MachineDesign and the machine description

MyAdaptiveApplication.arxml

Executable Description

Contains the Executable, the StartupConfigSet and the Process

MyDeployment.arxml

 

Contains the Process to Machine mapping

Adaptive Machine Configuration

In an MICROSAR Adaptive Application, the machine configuration is defined to ensure that the software runs correctly on the designated hardware.

notice

File location: ./Examples/amsr-vector-app-example-hello-world/model/MyAdaptiveMachine.arxml

 

ARXML Element

Use

Description

MACHINE

Machine Definition

Defines PROCESSORS and references the MACHINE-DESIGN.

MODE-DECLARATION-GROUP

State Definition

Set of MachineStates and ApplicationStates that are available on this machine.

ETHERNET-CLUSTER

IP Definition

Defines which IP addresses should be used.

 

MACHINE-DESIGN

Communication Definition

Defines network connections, configures service discovery mechanisms and describes hardware resources.

 

MACHINE-DESIGN Configuration Elements

ARXML Element

Description

COMMUNICATION-CONNECTORS

In the MACHINE-DESIGN there are references to COMMUNICATION-CONNECTORS that can be used.

ETHERNET-COMMUNICATION-CONNECTOR

Example connector which can be used for SOME/IP communication.

USER-DEFINED-COMMUNICATION-CONNECTOR

Example IPC connector.

SERVICE-DISCOVER-CONFIGS

Definition of service discovery mechanisms, for example SOME/IP.

RESOURCE-GROUPS

 

 

Adaptive Application Configuration

The executable is the description of your executable running on the system.

notice

File location: ./Examples/amsr-vector-app-example-hello-world/model/MyAdaptiveApplication.arxml

 

ARXML Element

Description

STARTUP-CONFIG-SET

Definition of the Startup Configuration.

We defined an option -c. This option is not used by the application. If you would like to use this, you need to implement an argument parser.

SCHEDULING-POLICY

 

SCHEDULING-PRIORITY

 

Deployment Configuration

notice

File location: ./Examples/amsr-vector-app-example-hello-world/model/MyDeployment.arxml

The PROCESS is the instantiation of the executable. The PROCESS is referring the executable (Models), the STARTUP-CONFIG (Models) and the MachineState (Models) in which the process should be running.

The definition on which machine which process is running is called ProcessToMachineMapping.

Additionally, in the Deployment Configuration it is defined which CPU cores should be used/not used by the PROCESS. In this case it is CPU core 0.