Data and Structure Layer Separation Metric
Metric ID
Metric ID:
mathworks.metrics.LayerSeparation
Description
Metric Type: Readability
Model Advisor Check ID:
mathworks.metricchecks.LayerSeparation
Run this metric to calculate the data and structure layer separation. The results provide the separation at the model and subsystem level.
This metric is available with Simulink®
Check™. To collect data for this metric, use getMetrics
with the metric identifier,
mathworks.metrics.LayerSeparation
.
For guidelines about blocks on model levels, see the MAB guideline db_0143: Usable block types in model hierarchy.
The slmetric.metric.AggregationMode
property setting is
Sum
.
Computation Details
The metric:
Does not run on library models.
Analyzes content in masked subsystems.
If specified, analyzes the content of library-linked blocks or referenced models.
Collection
To collect results for this metric using the Model Advisor, run the check, Data and structure layer separation metric in By Task > Model Metrics > Readability Metrics. The Model Advisor check displays the separation for the model or subsystem. The check does not analyze referenced models or return aggregated results.
Results
For this metric, instances of slmetric.metric.Result
provide the
following results:
Value
: Number of basic blocks on a structural level.AggregatedValue
: Number of basic blocks on a structural level for a component and its subcomponents.Measures
: Not applicable.