Contenuto principale

La traduzione di questa pagina non è aggiornata. Fai clic qui per vedere l'ultima versione in inglese.

Creazione di modelli di architettura

Rappresentare le architetture utilizzando componenti, porte e interfacce

Modellare l'architettura fisica, funzionale e logica di un sistema. Creare rappresentazioni visive con componenti, porte e collegamenti. I componenti rappresentano sistemi o sottosistemi architetturali da utilizzare nella progettazione del sistema. È possibile scomporre i componenti per aggiungere dettagli e definire relazioni gerarchiche, nonché riutilizzare i componenti e fare riferimento ad essi in diversi modelli di composizione. Per riutilizzare i progetti architetturali tra i componenti, convertire in modello di architettura e in riferimenti al sottosistema. Creare componenti con varianti e implementare più alternative di progettazione o di varianti, scelte in base a regole programmatiche.

Specificare lo scambio di informazioni tra i componenti con interfacce dati, interfacce fisiche e tipi di valori utilizzando Interface Editor. Un'interfaccia dati definisce il tipo, le dimensioni, le unità e la struttura dei dati contenuti in una porta e scambiati tra i componenti. È possibile definire interfacce localmente che vengono salvate con il modello oppure è possibile definire interfacce in un dizionario dei dati da utilizzare in tutti i modelli.

Aggiungere e modificare i parametri intrinseci o operativi per la progettazione architetturale su componenti e architetture utilizzando Parameter Editor. Promuovere i parametri dai componenti contenuti nel modello a un'architettura di livello superiore.

Creare controlli in fase di modifica per System Composer™ o definire personalizzazioni utilizzando sl_refresh_customizations.

Blocchi

ComponentAdd components to architecture model
Reference ComponentLink to architectural definition or Simulink behavior
AdapterConnect components with different interfaces

Classi

espandi tutto

systemcomposer.arch.ElementAll model elements
systemcomposer.arch.ArchitectureArchitecture in model
systemcomposer.arch.ModelSystem Composer model
systemcomposer.arch.BaseComponentAll components in architecture model
systemcomposer.arch.ComponentSystem Composer component
systemcomposer.arch.BasePortAll ports in architecture model
systemcomposer.arch.ArchitecturePortArchitecture port
systemcomposer.arch.ComponentPortComponent port
systemcomposer.arch.BaseConnectorAll connectors in architecture model (Da R2021b)
systemcomposer.arch.ConnectorConnector between ports
systemcomposer.arch.PhysicalConnectorConnector between physical ports (Da R2021b)
systemcomposer.arch.ParameterParameter in System Composer (Da R2022b)
systemcomposer.ValueTypeValue type in System Composer (Da R2021b)
systemcomposer.interface.DataInterfaceData interface (Da R2021b)
systemcomposer.interface.DataElementData element in data interface (Da R2021b)
systemcomposer.interface.PhysicalDomainPhysical domain in System Composer (Da R2021b)
systemcomposer.interface.PhysicalInterfacePhysical interface (Da R2021b)
systemcomposer.interface.PhysicalElementPhysical element in physical interface (Da R2021b)
systemcomposer.interface.DictionaryArchitectural data of data dictionary of architecture model

Funzioni

espandi tutto

Gestione del modello

systemcomposer.createModelCreate System Composer model
systemcomposer.loadModelLoad System Composer model
systemcomposer.openModelOpen System Composer model
openOpen architecture model
saveSave architecture model or data dictionary
closeClose architecture model
createArchitectureModelCreate architecture model from component (Da R2021b)
createArchitectureSubsystemCreate architecture subsystem from component (Da R2023a)
linkToModelLink component to model
inlineComponentRemove reference architecture or behavior from component
systemcomposer.extractArchitectureFromSimulinkExtract architecture from Simulink model
systemcomposer.exportToAUTOSARArchitectureExport current model to new AUTOSAR architecture model (Da R2023b)
systemcomposer.exportToSoftwareArchitectureExport current model to new software architecture model (Da R2023b)
systemcomposer.exportToVersionExport architecture model and dependencies to previous release of System Composer

Creazione del modello

addComponentAdd components to architecture
addPortAdd ports to architecture
getPortGet port from component
setNameSet name for port
connectCreate architecture model connections
smartConnectAuto-connect select components in model using port names or custom policy (Da R2025a)
getUnconnectedPortsGet unconnected ports (Da R2025a)
getSmartConnectPolicyGet smart connect policy (Da R2025a)
setSmartConnectPolicySet smart connect policy (Da R2025a)
lookupSearch for architectural element
IsAdapterComponentDetermine component is adapter
getQualifiedNameGet model element qualified name
setMaskImageApply mask image to component (Da R2023b)
destroyRemove model element

Gestione dei parametri

addParameterAdd parameter to architecture (Da R2022b)
getParameterGet parameter from architecture or component (Da R2022b)
getParameterPromotedFromGet source parameter promoted from (Da R2022b)
resetToDefaultResets parameter value to default (Da R2022b)
getEvaluatedParameterValueGet evaluated value of parameter from element (Da R2022a)
getParameterNamesGet parameter names on element (Da R2022a)
getParameterValueGet value of parameter (Da R2022a)
setParameterValueSet value of parameter (Da R2022a)
setUnitSet units on parameter value (Da R2022a)
resetParameterToDefaultReset parameter on component to default value (Da R2022a)

Gestione del tipo di valore

addValueTypeCreate named value type in data dictionary (Da R2021b)
createInterfaceCreate and set owned interface for port (Da R2021b)
setNameSet name for value type, function argument, interface, or element
setDataTypeSet data type for value type (Da R2021b)
setDimensionsSet dimensions for value type (Da R2021b)
setUnitsSet units for value type (Da R2021b)
setComplexitySet complexity for value type (Da R2021b)
setMinimumSet minimum for value type (Da R2021b)
setMaximumSet maximum for value type (Da R2021b)
setDescriptionSet description for value type or interface (Da R2021b)

Gestione dell'interfaccia

addInterfaceCreate named data interface in data dictionary
moveInterfaceMove interface to another data dictionary (Da R2023b)
addPhysicalInterfaceCreate named physical interface in data dictionary (Da R2021b)
removeInterfaceRemove named interface from interface dictionary
createInterfaceCreate and set owned interface for port (Da R2021b)
setNameSet name for value type, function argument, interface, or element
setInterfaceSet interface for port
getInterfaceGet object for named interface in dictionary
getInterfaceNamesGet names of all interfaces in dictionary
systemcomposer.getSelectedInterfacesGet selected interfaces in Interface Editor (Da R2024a)

Gestione dell'elemento

addElementAdd element
removeElementRemove element
getElementGet object for element
setNameSet name for value type, function argument, interface, or element
setTypeSet shared type on data element or function argument (Da R2021b)
createOwnedTypeCreate owned value type on data element or function argument (Da R2021b)
getSourceElementGets data elements selected on source port for connection
getDestinationElementGets data elements selected on destination port for connection

Gestione del dizionario

systemcomposer.createDictionaryCreate data dictionary
systemcomposer.openDictionaryOpen data dictionary
saveToDictionarySave interfaces to dictionary
isOpenDetermine whether dictionary is open (Da R2024a)
getFileNameGet absolute filename for dictionary (Da R2024a)
linkDictionaryLink data dictionary to architecture model
unlinkDictionaryRemove linked data dictionary from architecture model
addReferenceAdd reference to dictionary (Da R2021a)
removeReferenceRemove reference to dictionary (Da R2021a)
makeOwnedInterfaceSharedConvert owned interface to shared interface (Da R2022a)

Strumenti

Interface EditorCreate and author interfaces in local and shared data dictionaries
Parameter EditorAdd, edit, and promote parameters for architectures and components (Da R2022b)

Argomenti

Esempi in primo piano