Pivot Between Lifelines and Components in Views Gallery
This example shows how to use the pivot feature in the Architecture Views Gallery tool to transition between diagrams with your chosen lifeline or component selected.
1. Open the traffic light example and then launch the Architecture Views Gallery.
model = systemcomposer.openModel("TLExample");
openViews(model)
2. Create a new view called All Components
.
view = createView(model,"All Components");
3. Import the query namespace. Add a query to select all components from the model, then add the query to the view.
import systemcomposer.query.*
view.modifyQuery(AnyComponent)
4. On the All Components
component diagram view, select the switch
component.
5. From the Architecture Views Gallery toolstrip, in the Views tab, select Pivot. Then, select the PedestrianCross
sequence diagram to pivot from the switch
component to the switch
lifeline that represents the component.
You have navigated from the All Components
component diagram view to the PedestrianCross
sequence diagram to interact with the same entity.
See Also
Tools
- Architecture Views Gallery | Interface Editor | Requirements Editor (Requirements Toolbox) | Requirements Manager (Requirements Toolbox)
Functions
openViews
|createView
|getView
|deleteView
|modifyQuery
|runQuery
|removeQuery
|addElement
|removeElement
|getQualifiedName
|createSubGroup
|getSubGroup
|deleteSubGroup
|getQualifiedName
|lookup
Objects
systemcomposer.view.View
|systemcomposer.view.ElementGroup
|systemcomposer.query.Constraint
|systemcomposer.interface.DataInterface
|systemcomposer.interface.DataElement