Allocate Activity Diagram Elements to Architecture Model Components
An allocation establishes a directed relationship from architectural elements — components, ports, and connectors — in one model to architectural elements in another model. You can use model-to-model allocations to establish relationships from activity diagram elements to architecture model components.
For more information on allocations in System Composer™, see Create and Manage Allocations Interactively.
This topic shows how to use allocations within activity diagrams. The example shows a functional flow diagram for modeling a mobile robot architecture that travels between a randomized starting point and destination.
Open Model
Open the example.
openExample('systemcomposer/OpenActivityDiagramForRobotExample');Open the project.
openProject("scMobileRobotExample");For more information on this example, see Author a Simple Activity Diagram.
Create and Manage Allocations
To launch the Allocation Editor, navigate to Modeling > Allocation Editor.
In the Allocation Set Browser, pane, under the
DiagramToModel allocation set, select Scenario
1. Double-click the boxes in the allocation matrix to allocate or
deallocate two elements.
For example, the Error out node of the
RobotActivity activity diagram is allocated to the
Alignment Algorithm component of the
scMobileRobotLogicalArchitecture architecture model.

See Also
Functions
systemcomposer.createActivity|addNode|addParameter|getNode|getNodes|getFlow|connect|getParameter|getParameters|getPin|getPins|addPin|getParentPin|applyStereotype|removeStereotype|getStereotype|destroy|setBehaviorType
Objects
systemcomposer.activity.Action|systemcomposer.activity.Activity|systemcomposer.activity.ActivityNode|systemcomposer.activity.ActivityFinal|systemcomposer.activity.ControlNode|systemcomposer.activity.Flow|systemcomposer.activity.FlowFinal|systemcomposer.activity.Model|systemcomposer.activity.JoinFork|systemcomposer.activity.Initial|systemcomposer.activity.MergeDecision|systemcomposer.activity.Parameter|systemcomposer.activity.Pin
Tools
Blocks
- Initial Node | Action Node | Pin | Parameter Node | Decision or Merge Node | Join or Fork Node | Flow Final Node | Activity Final Node
Topics
- Describe System Behavior Using Activity Diagrams
- Establish Traceability and Extend Model Elements
- Simulate, Visualize, and Validate Activity Diagrams
- Compose Architectures Visually
- Implement Component Behavior Using Activity Diagrams
- Implement Component Behavior Using Stateflow Charts
- Implement Component Behavior Using Simscape