Subsystem Metric
Metric ID
Metric ID:
mathworks.metrics.SubSystemCount
Description
Metric Type: Size
Model Advisor Check ID:
mathworks.metricchecks.SubSystemCount
Use this metric to calculate the number of subsystems in the model. The results provide the number of subsystems 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.SubSystemCount
.
The slmetric.metric.AggregationMode
property setting is
Sum
.
Computation Details
The metric:
Runs on library models.
Analyzes content in masked subsystems.
Does not count subsystems linked to MathWorks® libraries.
If specified, analyzes the content of library-linked blocks or referenced models.
Collection
To collect data for this metric using the Model Advisor, run the check, Subsystem metric in By Task > Model Metrics > Count Metrics. The Model Advisor check displays the number of subsystems in the model or the 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 subsystems.AggregatedValue
: Number of subsystems for a component and its subcomponent.Measures
: Not applicable.