% UPDATEAUTOSARPROPERTIES(THIS, MODELNAME, P1, V1, ...) updates MODELNAME
% with AUTOSAR elements in the ARXML files associated with arxml.importer
% object THIS. The import generates a report that details the AUTOSAR
% elements copied to the model.
%
% Note: This api is different from updateModel() which requires input arxml
% to have AUTOSAR software component mapped by the model.
%
% Example:
% Copy AUTOSAR elements CompuMethods, Units, Dimensions,
% ImplementationDataTypes and SwBaseTypes described in arxml files
% 'CM.arxml', 'Units.arxml', 'Dimension.arxml', 'Platform_Types.arxml' and
% 'PlatformBase_Types.arxml' to model 'myModel.slx'
%
% arxmlFiles = {'CM.arxml', 'Unit.arxml', 'Dimension.arxml',...
%   'Platform_Types.arxml', 'PlatformBase_Types.arxml'};
% ar = arxml.importer(arxmlFiles);
% ar.updateAUTOSARProperties('myModel');
%
% Use Category, Package and RootPath parameters to have finer control over
% what gets copied to the model. Examples:
%
% To import all ImplementationDataType elements from a specified package:
% ar.updateAUTOSARProperties('myModel', 'Category', {'ImplementationDataType'}
%  'Package', {'/AUTOSAR_PlatformTypes/ImplementationDataTypes'});
%
% To import specific elements using their qualified name:
% ar.updateAUTOSARProperties('myModel', 'RootPath', {'/pkg/CompuMethodPackage/CM1',...
%   '/AUTOSAR_PlatformTypes/ImplementationDataTypes/uint16'});
%
% When an AUTOSAR element is imported, all of its dependencies are also
% imported. For example importing CompuMethod elements also imports
% Unit and PhysicalDimension elements.

 
%   Copyright 2014-2023 The MathWorks, Inc.

