Main Content

Model Advisor Check Compliance for Modeling Standards for MAB

Metric ID

Metric ID: mathworks.metrics.ModelAdvisorCheckCompliance.maab

Description

Metric Type: Compliance

Family ID: mathworks.metrics.ModelAdvisorCheckCompliance

Use this metric to calculate the fraction of Model Advisor checks that pass for the group Modeling Standards for MAB. This metric is available with Simulink® Check™.

The slmetric.metric.AggregationMode property setting is Percentile.

Computation Details

The metric:

  • Runs on library models.

  • Analyzes content in masked subsystems.

  • If specified, analyzes the content of library-linked blocks or referenced models.

  • Analyzes content in Stateflow® objects.

Results

For this metric, instances of slmetric.metric.Result provide the following results:

  • Value: Fraction of total number of checks passed in MAB.

  • AggregatedValue: Fraction of total number of checks passed in MAB aggregated for a component and all of its subcomponents.

  • Measures: Vector containing: number of checks passed in group and number of checks in group.

  • AggregatedMeasures: Vector containing: number of checks passed in group and number of checks in group, for a component and all its subcomponents.

Results Details

For this metric, instances of the slmetric.metric.ResultDetail Value property provides these results:

  • A value of 0 indicates that a check did not run.

  • A value of 1 indicates that a check passed.

  • A value of 2 indicates a check warning.

  • A value of 3 indicates a failure.

For more information on the checks, see Using Model Advisor Checks for JMAAB Modeling Guidelines.

See Also

Related Topics