connect
Connect AUTOSAR architecture components and compositions
Syntax
Description
connects the output ports of component or composition connectors = connect(archModel,comp1,comp2)comp1 to the
input ports of component or composition comp2, based on matching port
names. The archModel argument is a model handle returned by a previous
call to autosar.arch.createModel or
autosar.arch.loadModel. The comp1 and
comp2 arguments are component or composition handles returned by
previous calls to addComponent, addComposition, or
find. The connectors output argument returns one
or more connector handles, which are autosar.arch.Connector
objects.
connects the root input ports of parent composition or architecture model
connectors = connect(archCM,[],comp2)archCM to the input ports of child component or composition
comp2, based on matching port names.
connects the output ports of child component or composition connectors = connect(archCM,comp1,[])comp1 to
the root output ports of parent composition or architecture model
archCM, based on matching port names.
connects component, composition, or root architecture port connectors = connect(archModel,port1,port2)port1 to
component, composition or root architecture port port2. The
port1 and port2 arguments are port handles
returned by previous calls to addPort or
find.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020a