主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

removeProfile

从模型中移除配置文件

说明

removeProfile(model,profileName) 从模型中删除配置文件。

示例

removeProfile(dictionary,profileName) 从数据字典中删除配置文件。

removeProfile(allocSet,profileName) 从分配集中删除配置文件。

示例

全部折叠

创建一个模型 archModel

modelName = "archModel";
arch = systemcomposer.createModel(modelName);
systemcomposer.openModel(modelName);

创建带有构造型和属性的配置文件,打开配置文件编辑器,然后将配置文件应用到模型。

profile = systemcomposer.profile.Profile.createProfile("LatencyProfile");
latencybase = profile.addStereotype("LatencyBase");
latencybase.addProperty("latency",Type="double");
latencybase.addProperty("dataRate",Type="double",DefaultValue="10");
systemcomposer.profile.editor(profile)
model.applyProfile("LatencyProfile");

从模型中移除配置文件。

model.removeProfile("LatencyProfile");

输入参数

全部折叠

架构模型,指定为 systemcomposer.arch.Model 对象。

数据字典,指定为 systemcomposer.interface.Dictionary 对象。有关如何创建数据字典的信息,请参阅 createDictionary

分配集,指定为 systemcomposer.allocation.AllocationSet 对象。

配置文件的名称,指定为字符向量或字符串。配置文件必须在 MATLAB® 路径上可用,扩展名为 .xml

示例: "LatencyProfile"

数据类型: char | string

详细信息

全部折叠

版本历史记录

在 R2019a 中推出