Software Components
Software Components
To connect to a sender-
Software Components Required Interface
To connect to a sender-
receiver interface
This is a sender
receiver interface
This is a receiver
Volvo 3P
External interfaces
Receiver
Sender
AUTOSAR provides 2
communication paradigms for
software components
RTE
Sender-Receiver
Message passing
Client Server
Client-Server
Function invocation
RTE
Volvo 3P
Internal Behaviour captures what happens inside the
External
My Component Runnables capture a
thread of execution in
Behaviour inside the software
The ports component – this is a
define the model of the code that will
run when something
external view
of the SWC – Runnable happens.
what other
SWCs see.
Events link events on the ports
to runnables inside the SWC.
Volvo 3P
This is an assembly We can group components into a
connector between a P- composition. Note that connectors do not
Visualising Compositions PORT and an R-PORT need to be connected within the
composition.
A port on a
Composition composition
SWC SWC
Instance Instance
SWC
Instance
A delegation
connector
An assembly
connector
A delegation connector
A port on a
SWC composition
Instance
An assembly Composition
connector
Volvo 3P
Port Specific Attributes
SWC
Component
Type
Each instance created inherits
the properties of the parent type
All ports, characteristcs etc. IS-QUEUED = true
Queue 6 elements on this
receiver
Component
Type
A
Component
Instance
B
Component
Instance
So we need to define ECU types and create instances of them
Volvo 3P
System Mappings
For the inter-ECU SYSTEM a SYSTEM-MAPPING is required to map SWCs
onto ECUs
Composition
SWC SWC SWC
Prototype Prototype Prototype
Composition SWC
Prototype
ECUs
Volvo 3P
Mapping Runnables to Tasks
Task2_ECU1
Volvo 3P
Data Mappings: Data Element to COM Signal
Each data element sent on a sender-receiver interface must be mapped to a COM signal
Data Element
SWC Letter SWC
COMSignal
Envelope1
Volvo 3P