主要内容

金宝appSimulink.CloneDetection.ReplacementResults类

包:金宝app仿真软件。CloneDetection

替换克隆的结果

描述

的对象金宝appSimulink.CloneDetection.ReplacementResults类查看克隆替换操作的结果。

创建

描述

金宝appSimulink.CloneDetection.replaceClones属性的对象金宝appSimulink.CloneDetection.ReplacementResults类。对象的输入参数金宝appSimulink.CloneDetection.checkEquivalency函数。

属性

全部展开

被替换的克隆和引用子系统的名称列表,指定为字符向量数组。

  • 的名字—更换后的子系统克隆名称

  • ReferenceSubsystem—用于替换克隆的子系统

被排除克隆的名称列表和被排除的原因,指定为字符向量数组。

  • 的名字—排除的子系统克隆名称

  • ReasonForExclusion—排除克隆替换的原因

例子

全部折叠

这个例子展示了如何分析替换克隆操作的结果。

replace克隆函数将信息存储在cloneReplacementResults对象。

  1. cloneReplacementResults = 金宝appSimulink.CloneDetection.replaceClones(cloneResults)
    cloneReplacementResults =带有属性的ReplacementResults: replaced克隆:[1×5 struct] excluded克隆:{}
    cloneReplacementResults。ReplacedClones
  2. 浏览ReplacedClones字段。

    ans = 1×5包含字段的struct数组:Name ReferenceSubsystem

版本历史

R2021a中引入