Migrator
Migrate data types and interfaces from base workspace and data dictionaries to an interface dictionary
Since R2022b
In R2023b the Architectural Data section of data dictionaries was introduced. When managing interfaces, data types, constants, and software address methods consider using the Simulink.dictionary.ArchitecturalData programmatic interfaces instead. For more information, see Programmatically Manage AUTOSAR Architectural Data.
Description
The interface dictionary Migrator object lets you perform
migration from a model or an architecture.
The object functions let you programmatically execute the steps in the migration workflow, including:
Analyze the data types and interfaces to migrate
Apply the migration analysis
Revert the migration analysis
Save the applied migration changes

Creation
constructs a migratorObj = Simulink.interface.dictionary.Migrator(modelName, 'InterfaceDictionaryName', dictionaryName, 'DeleteFromOriginalSource',deleteFlag, 'ConflictResolutionPolicy', conflictResolutionPolicyFlag)Migrator object representing the data types and interfaces to
migrate from the base workspace and data dictionaries to the interface dictionary. See Create Interface Dictionary Migrator Object
The Migrator function input arguments select the model, interface
dictionary, whether to delete variables from the model, and the conflict resolution
policy.
Input Arguments
modelName — Name of the model
character vector | string
Name of source system architecture, specified as a character vector or string.
dictionaryName — Name of interface dictionary
character vector | string
Name of interface dictionary, specified as a character vector or string. The name must include the
.slddextension and must be a valid MATLAB® identifier.deleteFlag — Select variable deletion
true(default) |falseSelects (if true) whether to delete variables (data types and interfaces) from the source base workspace and data dictionaries after these migrate to the interface dictionary.
conflictResolutionPolicyFlag — Select conflict resolution
'Error'(default) |'OverwriteInterfaceDictionary'|'KeepInterfaceDictionary'Selects resolution policy for merge conflicts between data types and interfaces in the base workspace and the data dictionaries versus those already present in the interface dictionary.
Keep Interface Dictionary

Overwrite Interface Dictionary

Output Arguments
migratorObj —
MigratorobjectMigratorobjectMigratorobject, specified by aSimulink.interface.dictionary.Migratorfunction.
Properties
Object Functions
analyze | Analyze a model or an architecture for migration to interface dictionary |
analyzeAndApply | Analyze a model or an architecture and apply migration to interface dictionary |
apply | Apply interface dictionary migration changes from analysis of a model or an architecture |
revert | Revert interface dictionary migration changes applied from analysis of a model or an architecture |
save | Save applied interface dictionary migration changes from analysis of a model or an architecture |
Examples
Version History
Introduced in R2022bSee Also
analyze | analyzeAndApply | apply | revert | save