Composition

Model software composition in AUTOSAR architecture model

Library

AUTOSAR Blockset

Description

In an AUTOSAR architecture model, you use the composition editor and the Simulink® Toolstrip Modeling tab to add and connect compositions and components. Use the Composition block to add a nested software composition to an AUTOSAR software design.

To add and connect a nested AUTOSAR composition:

  • From the Modeling tab or the palette, add a Composition block.

  • Add composition require and provide ports. To add each composition port, click an edge of the Composition block. When port controls appear, select Input for a require port or Output for a provide port.

    Alternatively, open the Composition block. To add each composition port, click the boundary of the composition diagram. When port controls appear, select Input for a require port or Output for a provide port.

  • To connect the Composition block to other blocks, connect the block ports with signal lines.

  • To connect the Composition block to architecture or composition model root ports, drag from the composition ports to the containing model boundary. When you release the connection, a root port is created at the boundary.

  • Configure additional AUTOSAR properties using the Property Inspector.

Typically, an AUTOSAR composition contains a set of AUTOSAR components and compositions with a shared purpose. To populate a composition, open the Composition block and begin adding more Component and Composition blocks.

Introduced in R2019b