Software Composition
Model software composition in AUTOSAR architecture model
Libraries:
      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 Software Composition block to add a nested software composition to an AUTOSAR software design. Compositions are supported for classic and adaptive modeling.
To add and connect a nested AUTOSAR composition:
- From the Modeling tab or the palette to the left of the canvas, add a Software Composition block. 
- Add composition require ports and provide ports. To add each composition port, click an edge of the Software Composition block. When port controls appear: - For classic modeling, select Input for a require port or Output for a provide port. 
- For adaptive modeling, select Input or Client for a require port, or Output or Server for a provide port. 
 - Alternatively, open the Software Composition block. To add each composition port, click the boundary of the composition diagram and select require and provide ports as needed. 
- To connect the Software Composition block to other blocks, connect the block ports with signal lines. 
- To connect the Software Composition block to architecture or composition model root ports, drag a line from the composition ports to the containing model boundary. Releasing the connection creates a root port at the boundary. 
- Configure additional AUTOSAR properties using the Property Inspector. 
An AUTOSAR composition contains a set of AUTOSAR components and compositions with a shared purpose. To populate a composition, open the Software Composition block and begin adding more Software Composition blocks and Classic Component or Adaptive Component blocks. Mixing classic and adaptive components is not supported.
