The PortReplicator2 extension view is used for establishing the external communication on CompositionSwComponentTypes based on its' contained component's ports. Its main purpose is to establish the external interface of an ECU.
Prerequisites
- The Autosar Meta model
- An installation of the SystemWeaver Explorer client (swExplorer) version R34 or later
- The SystemWeaver SWExtension.PortReplicator2 extension view has been configured and activated by an Architect
- The SWExtension.PortReplicator2 extension file is located in the Client's swExplorerExtensions directory
To access the PortReplicator view, you must first select an item of item type Composition in the structure as shown below.
Select the PortReplicator view via the Items Ribbon or by selecting it in the View drop-down list.
Getting Acquainted with the View
When you load the view, the first step is to select the correct version of the Autosar system.
If the Autosar system is available in the open structure tree, it will be pre-selected in the drop-down box as shown above.
Below the Autosar system selector, the view shows all ports that are located on components directly inside the composition and indicates whether they are included on the composition or not. In addition, it indicates if there is something that needs to be synchronized between the inner component's port and the composition.
Each component section can be expanded or collapsed using the up/down button, which is useful if there are many components to view.
Below is an explanation of the information provided in each column.
Interface
The name of the interface.
Included
Indicates whether or not the port is included on the selected composition or not.
In component
Indicates whether there is a corresponding sender/receiver directly inside the selected composition. This information is read-only.
In ECU
Indicates whether there is a corresponding sender/receiver inside the ECU where the selected composition is allocated. This information is read-only.
In system
Indicates whether or not there is a corresponding sender or receiver anywhere in the Autosar system. This information is read-only.
Including and Excluding Ports
The view lists ports that are candidates for external communication grouped first by component, and then by send and receive ports.
When you include a port, a new port is added to the composition with the same direction and interface as the components port. Also, all attribute values on the port are copied to the composition's new port unless they are of type: Computed, Custom, External reference, or Identity.
When you exclude a port, the existing port is removed and if there are mappings to System signals, these mappings will be removed as well.
To include/exclude a port, click the checkbox in the Included column. A check indicates that it is included.
Note: If you exclude a port and then include it again, SystemWeaver will consider the old port on the composition removed and the new port as a new one. This will result in changed UUID:s in an Autosar export if utilized there. |
Synchronizing the Interfaces
The last column is the synchronize column that indicates whether there is a need to synchronize the interfaces between the contained component and the composition. A need to synchronize arises when there is a version difference between the contained component's interface and the composition's interface, or if there are attributes on these ports that do not have the same values. Note that when synchronizing, the composition's port will always be updated according to the contained component's port.
The synchronization tool will appear black instead of gray if synchronization is needed. Click on the button to synchronize.
Handling Orphan Ports
If the composition has ports that do not have a corresponding sending or receiving component, they are listed in the top of the view with the respective labels Send ports without producing component and Receive ports without consuming component.
Below is an explanation of the information provided in each column.
Interface
The name of the interface
In system
Indicates whether or not there is a corresponding sender or receiver anywhere in the Autosar system. This is read-only
To remove an orphan port from the composition, click the X button.
What's Next?
See Approving Signals for Inter ECU Communication.