slmetric.Engine Class
Namespace: slmetric
(To be removed) Collect metric data on models or model components
The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.
Description
Use a slmetric.Engine object to collect metric data on models by
calling execute. Use getMetrics to access the metric data and return an array of slmetric.metric.ResultCollection objects. This metric data is persistent in the
simulation cache folder. Future instantiations of the slmetric.Engine
object for the same model can access the cached metric data without regenerating the metric
data.
The slmetric.Engine class is a handle class.
Creation
Description
metric_engine = slmetric.Engine() creates a metric engine
object.