主要内容

getDestinationElement

Gets signal interface elements selected on destination port for connection

    描述

    example

    SelectedElems= getDestinationElement(connector)gets the selected signal interface elements on a destination port for connection.

    例子

    collapse all

    在连接的目标端口上获取所选元素。

    modelName ='archModel';Arch = SystemComposer.CreateModel(modelName,true);% Create modelrootArch = get(arch,'建筑学');% Get architecturenewcomponent = addcomponent(rootarch,'component1');%添加组件OutportComp = addport(newcomponent.architecture,...'testSig','out');%在组件上创建端口outPortArch = addPort(rootArch,'testSig','out');% Create out-port on architecturecompsrcport = getport(newcomponent,'testSig');%提取组件端口对象archDestPort = getPort(rootArch,'testSig');% Extract architecture port object接口= Arch.InterFaceDictionary.Addinterface('interface');% Add interface接口'x');%创建接口元素ArtDestport.setInterface(接口);% Set interface on architecture portconns = connect(compSrcPort,archDestPort,'DestinationElement','x');% Connect portselem = getDestinationElement(conns)
    elem = 1×1 cell array {'x'}

    Input Arguments

    collapse all

    Connection between ports, specified as asystemcomposer.arch.Connector目的。

    Output Arguments

    collapse all

    选定的接口元素名称,返回为字符向量。

    Data Types:char

    More About

    collapse all

    Definitions

    Term Definition 应用 More Information
    建筑学 System Composer™体系结构代表组件系统以及它们在结构和行为上如何相互接口。您可以使用替代视图表示特定的体系结构。

    Different types of architectures describe different aspects of systems:

    • 功能架构描述系统中的数据流。

    • Logical architecturedescribes the intended operation of a system.

    • Physical architecturedescribes the platform or hardware in a system.

    Compose Architecture Visually
    model A System Composer model is the file that contains architectural information, including components, ports, connectors, interfaces, and behaviors.

    Perform operations on a model:

    • Extract the root level architecture contained in the model.

    • Apply profiles.

    • 链接接口数据词典。

    • Generate instances from model architecture.

    系统作曲家模型被存储为.slxfiles.

    Create an Architecture Model
    component 组件是系统的非平凡,几乎独立的且可更换的部分,在体系结构的背景下实现了清晰的功能。组件定义架构元素,例如功能,系统,硬件,软件或其他概念实体。组件也可以是子系统或子函数。 Represented as a block, a component is a part of an architecture model that can be separated into reusable artifacts. Components
    port A port 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.

    有不同类型的端口:

    • 组件端口are interaction points on the component to other components.

    • 建筑端口are ports on the boundary of the system, whether the boundary is within a component or the overall architecture model.

    端口
    connector Connectors are lines that provide connections between ports. Connectors describe how information flows between components or architectures. A connector allows two components to interact without defining the nature of the interaction. Set an interface on a port to define how the components interact. Connections

    Term Definition 应用 More Information
    interface 一个接口定义了流过端口的信息的种类。相同的接口可以分配给多个端口。接口可以是复合的,这意味着它可以包含描述接口信号属性的元素。 Interfaces represent the information that is shared through a connector and enters or exits a component through a port. Use the Interface Editor to create and manage interfaces and interface elements and store them in an interface data dictionary for reuse between models. 定义接口
    接口元素 An interface element describes a portion of an interface, such as a communication message, a calculated or measured parameter, or other decomposition of that interface.

    界面元素描述了接口的分解:

    • Pins or wires in a connector or harness.

    • Messages transmitted across a bus.

    • Data structures shared between components.

    Assign Interfaces to Ports
    接口词典 接口数据词典是架构中所有接口及其使用的接口的合并列表。系统作曲家模型上的本地接口可以使用接口编辑器保存在接口数据字典中。 接口词典可以在需要使用给定的一组接口和接口元素的模型之间重复使用。数据字典存储在单独的.slddfiles.
    adapter 适配器通过在两个接口之间映射两个组件将两个组件与不兼容的端口接口连接。适配器也可以充当单位延迟或费率转换。

    With an adapter, you can perform three functions on the Interface Adapter dialog:

    • Create and edit mappings between input and output interfaces.

    • Apply an interface conversionUnitdelay打破代数循环。

    • Apply an interface conversionRateTransition调和参考模型的不同样本时间率。

    Interface Adapter

    Introduced in R2020b