主要内容

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

systemcomposer.profile.Stereotype.find

按名称查找构造型

    说明

    stereotype = systemcomposer.profile.Stereotype.find(name) 通过名称查找构造型。

    示例

    示例

    全部折叠

    在小型无人驾驶飞行器 (UAV) 模型中找到一个构造型模型。

    openProject("scExampleSmallUAV");
    stereotype = systemcomposer.profile.Stereotype.find("UAVComponent.OnboardElement")
    stereotype = 
      Stereotype with properties:
    
                        Name: 'OnboardElement'
                 Description: 'Represents the base component of UAVComponent'
                      Parent: [0×0 systemcomposer.profile.Stereotype]
                   AppliesTo: 'Component'
                    Abstract: 0
                        Icon: 'network'
        ComponentHeaderColor: [210 210 210]
          ConnectorLineColor: [168 168 168]
          ConnectorLineStyle: 'Default'
          FullyQualifiedName: 'UAVComponent.OnboardElement'
                     Profile: [1×1 systemcomposer.profile.Profile]
             OwnedProperties: [1×3 systemcomposer.profile.Property]
                  Properties: [1×3 systemcomposer.profile.Property]
    
    

    输入参数

    全部折叠

    构造型名称,指定为 "<profile>.<stereotype>" 形式的字符向量或字符串。

    数据类型: char | string

    输出参量

    全部折叠

    找到的构造型,以 systemcomposer.profile.Stereotype 对象的形式返回。

    详细信息

    全部折叠

    版本历史记录

    在 R2019a 中推出