slmetric.Engine Class
Namespace: slmetric
Superclasses:
(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.
Construction
metric_engine = slmetric.Engine()
creates a metric engine
object.
Properties
Methods
execute | (To be removed) Collect metric data |
exportMetrics | (To be removed) Export model metrics |
getAnalysisRootMetric | (To be removed) Get metric data for one metric for analysis root only |
getErrorLog | (To be removed) Get error log |
getMetricDistribution | (To be removed) Get metric distribution |
getMetricMetaInformation | (To be removed) Obtain metric meta-information |
getMetrics | (To be removed) Access model metric data |
getStatistics | (To be removed) Get statistics on metric data |
setAnalysisRoot | (To be removed) Specify model or subsystem for metric analysis |