Main Content

Create AUTOSAR Architecture Views for Analysis

汽车体系结构可以很大而复杂。通常,开发工作是分发的,不同的工程师从事建筑模型的不同结构或功能部分的工作。为了帮助分析体系结构模型的结构或功能方面,您可以创建模型层次结构的过滤视图。

  • 一个聚光灯视图显示所选体系结构组件或组成的上游和下游依赖关系。

  • 一个自定义视图根据您指定的过滤条件,显示架构模型中组件的子集。您可以过滤模型元素以进行操作,功能或物理分析。

过滤用于特定属性的AutoSar体系结构模型,并使用模型保存过滤的视图可以帮助工程师专注于架构的各个部分。

查看组成依赖性或组成依赖性

AUTOSAR的体系结构模型,帮助分析component or composition dependencies, you can create a spotlight view. A spotlight view is a simplified view of an architecture component or composition that captures its upstream and downstream dependencies.

要创建聚光灯视图,请打开架构模型并选择组件或组成。在造型选项卡,选择架构视图>Spotlight

Spotlight视图显示组件或组成在层次结构中连接的模型元素。您不能编辑聚光灯图布局。该图显示了组件的聚光灯视图Monitor在Autosar示例模型中autosar_tpc_composition。(要在本地工作文件夹中打开示例模型,请使用命令OpenExample('autosar_tpc_composition')。)

While in the spotlight view, you can move the spotlight focus to another component or composition. Select another component or composition, place your cursor over the displayed ellipsis, and select model cue从组件创建聚光灯

为了在模型开发过程中保持聚光灯视图可见,您可以在单独的模型窗口中创建视图。要创建一个单独的模型窗口,请选择一个组件或组成,右键单击所选块以打开其上下文菜单,然后选择Open in New Window。在新窗口中,创建一个聚光灯视图。

Updating the architecture model diagram with changes refreshes open spotlight views.

要从聚光灯视图返回到体系结构模型视图,请单击Spotlight关闭图标或选择组件或组成,然后选择模型提示在构图中显示

万博1manbetx®does not save spotlight views with the architecture model.

创建自定义视图以进行分析

To help analyze structural and functional aspects of an AUTOSAR architecture model, you can create a custom view. Based on filtering conditions that you specify, a custom view shows a subset of components from the architecture model. You can filter model elements for operational, functional, or physical analysis.

To create a custom view, open the Architecture Views Gallery. In an open architecture model, on the造型选项卡,选择架构视图。该图显示了Autosar示例模型的初始画廊视图autosar_tpc_composition。(要在本地工作文件夹中打开示例模型,请使用命令OpenExample('autosar_tpc_composition')。)

The views editor shows the option to create a new view.

假设您要创建体系结构模型的视图autosar_tpc_compositioncontaining only components that handle throttle position sensor (TPS) signals.

  1. In the gallery view ofautosar_tpc_composition, 点击新视图

    要命名视图,查看属性,输入名称TPS端口视图

  2. Specify a model elements filter forTPS端口视图

    1. 在下面查看配置, select the筛选标签。

    2. 添加并配置过滤器子句。选择添加子句。From the选择下拉列表,选择港口。From the在哪里下拉列表,选择姓名。在“价值文本”框中,输入TPS

    带有过滤器的新视图称为“ TPS端口视图”。

  3. To display the updatedTPS端口视图, 点击应用查询。对视图进行过滤以选择包含节气门位置传感器(TPS)端口的组件。

    应用查询后更新的视图。

保存架构模型时,视图保存在架构视图库中。然后,其他用户可以访问并共享视图。

有关更多信息,请参阅交互创建架构视图(System Composer)

Related Topics