How to design a SWC structure diagram with clear structure and beautiful layout

We all know that the design concept of AUTOSAR is top-down design, and many AUTOSAR tool chains currently used support model design for SWC design. Taking the Vector Developer tool as an example, assuming we do not adjust the Composition, its structure diagram will display It will be messy, for example, as shown below. The relationship between ports in the structure diagram is not clear, the positions overlap, and the layout is not clear enough. Some friends develop SWC structure diagrams that are not adjusted, and the ports are in a mess. Every time I open the project, it seriously affects my understanding of the project. The pursuit of beauty is a concept. As a technical practitioner, we must pursue simple and efficient working methods, but we must not leave the concept of beauty.

Unadjusted Composition structure diagram

image-20220621111533920

So how do we adjust this structural diagram to be clear and beautiful? In fact, the tool provides many tools for port layout operations.

Introduction to Layout tool in Developer

image-20220621101027278

1 Auto-Layout Delegation Ports

Use this option to automatically layout the ports location, which is very practical. Select a single port or select multiple ports in batches, and then click this icon option to automatically layout the ports.

2 Sorts Ports Ascending

root

Guess you like

Origin blog.csdn.net/qgccdd061313/article/details/130484950