Main Content

renameProfile

Rename profile in model

    描述

    例子

    RenameProfile(模型Name,,,,OldProfilename,,,,newprofilename将模型上的配置文件重命名OldProfilenamenewprofilename如果在文件资源管理器中更改了配置文件的名称,则使其保持一致。

    例子

    全部收缩

    创建模型。

    model = systemcomposer.createmodel(“ ArchModel”,真的);

    Create a profile with a stereotype and properties, open theProfile Editor,然后将配置文件应用于模型。

    profile = systemcomposer.profile.profile.createprofile(“潜伏期”);latencyBase = profile.addstereotype("LatencyBase");latencybase.addProperty(“潜伏”,type ="double");latencybase.addProperty(“数据速率”,type ="double",DefaultValue =“ 10”);systemcomposer.profile.editor(profile)model.ApplyProfile(“潜伏期”);

    保存模型并关闭模型。关上Profile Editor

    节省(model) close(model)

    保存个人资料。

    保存个人信息)

    Rename the profile in the file explorer to延迟Profilenew.xml

    加载模型。跑过renameProfileAPI更新模型以参考当前目录中正确的重命名配置文件。

    model = systemcomposer.loadmodel(“ ArchModel”);模型。RenameProfile(“潜伏期”,,,,“潜伏品”);

    输入参数

    全部收缩

    模型,指定为SystemComposer.arch.modelobject or a character vector or string as the name of the model.

    Example:"myModel"

    Example:ArchModel

    数据类型:char|细绳

    旧配置文件名称,,,,specified as a character vector or string.

    Example:"MyProfile"

    数据类型:char|细绳

    新的配置文件名称,指定为字符向量或字符串。

    Example:“ Myprofilenew”

    数据类型:char|细绳

    更多关于

    全部收缩

    定义

    学期 定义 应用 更多信息
    architecture

    系统作曲家™architecture代表组件系统以及它们如何在结构和行为上相互接口。您可以使用替代视图表示特定的体系结构。

    不同类型的体系结构描述了系统的不同方面:

    • 功能架构describes the flow of data in a system.

    • 逻辑架构描述系统的预期操作。

    • 物理体系结构描述系统中的平台或硬件。

    在视觉上撰写体系结构
    模型

    系统作曲家模型is the file that contains architectural information, including components, ports, connectors, interfaces, and behaviors.

    在模型上执行操作:

    • Extract the root-level architecture contained in the model.

    • 应用轮廓。

    • Link interface data dictionaries.

    • 从模型体系结构生成实例。

    系统作曲家模型存储为SLX文件。

    Create Architecture Model with Interfaces and Requirement Links
    零件

    一个零件是在体系结构中实现明确功能的系统的一个非平凡,几乎独立且可更换的部分。组件定义了构建元素,例如功能,系统,硬件,软件或其他概念实体。组件也可以是子系统或子函数。

    组件表示为块,是可以将可重复使用的伪像的体系结构模型的一部分。

    成分
    港口

    一个港口is a node on a component or architecture that represents a point of interaction with its environment. A port permits the flow of information to and from other components or systems.

    There are different types of ports:

    • Component ports是其他组件的组件上的交互点。

    • 一个rchitecture ports是系统边界上的端口,无论边界在组件内还是整体体系结构模型内。

    Ports
    连接器

    Connectorsare lines that provide connections between ports. Connectors describe how information flows between components or architectures.

    连接器允许两个组件相互作用,而无需定义交互的性质。在端口上设置一个接口以定义组件如何交互。

    连接

    学期 定义 应用 更多信息
    刻板印象

    一个刻板印象是建模语言的自定义扩展。刻板印象提供了一种通过添加域特异性元数据扩展体系结构语言元素的机制。

    一个pply stereotypes to model elements such as root-level architecture, component architecture, connectors, ports, data interfaces, value types, and functions. Functions only apply to software architectures. A model element can have multiple stereotypes. Stereotypes provide model elements with a common set of property fields, such as mass, cost, and power.

    使用刻板印象扩展建筑设计
    财产

    一个财产is a field in a stereotype. You can specify property values for each element to which the stereotype is applied.

    使用属性来存储量化特征cs, such as weight or speed, that are associated with a model element. Properties can also be descriptive or represent a status. You can view and edit the properties of each element in the architecture model using the Property Inspector.

    轮廓

    一个轮廓is a package of stereotypes to create a self-consistent domain of element types.

    作者配置文件并将配置文件应用于模型Profile Editor。您可以在一个配置文件中或在几个配置文件中存储一个针对项目的刻板印象。保存配置文件时,它们将存储在XML文件中。

    版本历史记录

    在R2020b中引入