metric.Engine
Description
A metric.Engine
object represents the metric engine that you
can execute with the execute
object function to collect metric results. Use
getMetrics
to access the metric results and return an array of
metric.Result
objects. Use the metric results to assess the status and
quality of your design. Use the model maintainability metrics to analyze the maintainability
and complexity of the design. Use the model and code testing metrics to analyze artifacts such
as requirements, test results, and coverage results. For additional metrics, see Design Cost Model Metrics (Fixed-Point Designer).
Creation
Description
creates a
metric engine object that collects metric results on the current project.metric_engine
= metric.Engine()
opens the project metric_engine
= metric.Engine(projectPath
)projectPath
and creates a metric engine object that
collects metric results on the project.
Input Arguments
Properties
Object Functions
execute | Collect metric results |
generateReport | Generate report file containing metric results |
getArtifactErrors | Return errors that occurred during artifact tracing |
getArtifactIssues | Return issues that occur during artifact analysis |
getAvailableMetricIds | Return metric identifiers for available metrics |
getMetrics | Access metric results |
openArtifact | Open traced artifact from metric result |
updateArtifacts | Update trace information for pending artifact changes in the project |
Examples
Version History
Introduced in R2020b