主要内容

addLibraries

类:金宝appSimulink.CloneDetection.Settings
包:金宝appSimulink.CloneDetection

添加库和子系统

语法

cloneDetectionSettings = addLibraries (cloneDetectionSettings LibraryName)

描述

cloneDetectionSettings = addLibraries (cloneDetectionSettings,LibraryName)添加的库文件cloneDetectionSettings对象。

输入参数

全部展开

克隆检测设置,指定为一个金宝appSimulink.CloneDetection.Settings对象。

库文件的名称,指定为一个特征向量。

输出参数

全部展开

克隆检测设置,指定为一个金宝appSimulink.CloneDetection.Settings对象。

例子

全部展开

这个例子展示了如何添加一个库文件cloneDetectionSettings对象。当你添加一个库文件复制检测设置,findClones可以在图书馆找到子系统克隆功能。假设库文件clones_library

保存库文件名,clones_library的变量库名

库名=“clones_library”;

创建一个金宝appSimulink.CloneDetection.Settings对象。

cloneDetectionSettings = 金宝appSimulink.CloneDetection.Settings ();

库文件的名称添加到克隆检测设置。

addLibraries (cloneDetectionSettings库名);

库文件中出现财产的克隆检测设置。