renameProfile
Rename profile in model
描述
RenameProfile(
将模型上的配置文件重命名模型Name
,,,,OldProfilename
,,,,newprofilename
)OldProfilename
至newprofilename
如果在文件资源管理器中更改了配置文件的名称,则使其保持一致。
例子
重命名配置文件
创建模型。
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
。
加载模型。跑过renameProfile
API更新模型以参考当前目录中正确的重命名配置文件。
model = systemcomposer.loadmodel(“ ArchModel”);模型。RenameProfile(“潜伏期”,,,,“潜伏品”);
输入参数
模型Name
-Model
模型对象|角色向量|细绳
模型,指定为SystemComposer.arch.model
object or a character vector or string as the name of the model.
Example:"myModel"
Example:ArchModel
数据类型:char
|细绳
OldProfilename
-旧配置文件名称
角色向量|细绳
旧配置文件名称,,,,specified as a character vector or string.
Example:"MyProfile"
数据类型:char
|细绳
newprofilename
-新的个人资料名称
角色向量|细绳
新的配置文件名称,指定为字符向量或字符串。
Example:“ Myprofilenew”
数据类型:char
|细绳
更多关于
定义
学期 | 定义 | 应用 | 更多信息 |
---|---|---|---|
architecture | 系统作曲家™architecture代表组件系统以及它们如何在结构和行为上相互接口。您可以使用替代视图表示特定的体系结构。 |
不同类型的体系结构描述了系统的不同方面:
|
在视觉上撰写体系结构 |
模型 | 系统作曲家模型is the file that contains architectural information, including components, ports, connectors, interfaces, and behaviors. |
在模型上执行操作:
系统作曲家模型存储为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:
|
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文件中。 |
版本历史记录
matlab-befehl
Sie Haben Auf Einen Link Geklickt,der Diesem matlab-befehl ientspricht:
führensie den befehl durch eingabe在das matlab-befehlsfenster aus中。webbrowserunterstützenkeine matlab-befehle。
You can also select a web site from the following list:
如何获得最佳网站性能
选择中国网站(中文或英语)以获得最佳场地性能。其他Mathworks乡村网站未针对您所在的访问进行优化。
美洲
- 一个mérica Latina(Español)
- 加拿大(英语)
- 美国(英语)