Migrator
Migrate data types and interfaces from base workspace and data dictionaries to an interface dictionary
Since R2022b
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
.sldd
extension and must be a valid MATLAB® identifier.deleteFlag — Select variable deletion
true
(default) |false
Selects (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 —
Migrator
objectMigrator
objectMigrator
object, specified by aSimulink.interface.dictionary.Migrator
function.
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 R2022b
See Also
analyze
| analyzeAndApply
| apply
| revert
| save
| Interface Editor