isMetricFamilyParameterParameterized

Class: slmetric.config.Configuration
Package: slmetric.config

Determine whether Metrics Dashboard configuration object has metric family parameter values

Syntax

ParameterizedConfig = isMetricFamilyParameterParameterized(config,... 'ModelAdvisorStandard')

Description

For an slmetric.config.Configuration object, use the ParameterizedConfig = isMetricFamilyParameterParameterized(config,... 'ModelAdvisorStandard') method to determine whether an slmetric.config.Configuration object contains metric family parameter values. These values are the Check Group IDs corresponding to the check groups for which you obtain compliance and issues metric data. Compliance metric data is the percentage of passed checks. Issues metric data is the number of check issues.

Input Arguments

expand all

slmetric.config.Configuration object for which to obtain checks groups that have compliance and issues metric data.

Standard string that you must supply as an input.

Output Arguments

expand all

Determine whether a Metrics Dashboard configuration object has metric family parameter values.

Data Types: Logical

Examples

expand all

Obtain compliance and issues metric data on the Modeling Standards for MISRA C:2012, MAAB, and High-Integrity Systems check groups.

Open the default configuration.

config = slmetric.config.Configuration.open();

Specify the metric family parameter ID and the metric family parameter values. To obtain the MISRA value, open the Model Advisor Configuration Editor and select the MISRA folder. The Check Group ID parameter is in the folder.

famParamID = 'ModelAdvisorStandard';
values = {'maab', 'hisl_do178', '_SYSTEM_By Task_misra_c'};
setMetricFamilyParameterValues(config, famParamID, values); 

The maab and hisl_do178 checks include a subset of MAAB and High-Integrity System checks. To include all the checks, specify the Check Group ID from the Model Advisor Configuration Editor.

Check that the slmetric.config.Configuration object has metric family parameter values.

PC = isMetricFamilyParameterParameterized(config, famParamID);
PC =

  logical

   1

Save the new configuration.

config.save('FileName', 'MetricConfig.xml');

Set the active Metrics Dashboard configuration.

slmetric.config.setActiveConfiguration(fullfile(pwd, 'MetricConfig.xml'));

Introduced in R2018b