@OpenApi
public class MetricsManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
acceptDiagramElement(BaseElement element)
Verify if the element is a diagram
|
boolean |
acceptElement(BaseElement element)
Verify if the model element is eligible to be shown in the metrics' element list and metrics table results.
|
void |
addMetric(Metric metric)
Add a metric to the container.
|
void |
addMetrics(java.util.Collection metrics)
Add metrics to the container.
|
void |
addMetricsSuite(MetricsSuite metricsSuite)
Add a metric suite to the system.
|
boolean |
contains(java.lang.String metricsSuiteID)
Check if exists a metrics suite with the given ID
|
static MetricsManager |
getInstance()
Returns a shared instance of metrics manager.
|
MetricsSuite |
getMetricsSuite(java.lang.String name)
Return the metrics suites for the given name.
|
MetricsSuite |
getMetricsSuiteByID(java.lang.String id)
Return the metrics suites for the given name.
|
void |
removeMetric(Metric metric)
Remove the metric from the container.
|
void |
removeMetric(java.lang.String id)
Remove the metric with the given id from the metrics container.
|
void |
removeMetricsSuite(MetricsSuite metricsSuite)
Remove a metrics suite from the system.
|
@OpenApi public static MetricsManager getInstance()
@OpenApi public boolean acceptElement(BaseElement element)
element
- BaseElement@OpenApi public boolean acceptDiagramElement(BaseElement element)
element
- BaseElement@OpenApi public void removeMetricsSuite(MetricsSuite metricsSuite)
metricsSuite
- MetricsSuits@OpenApi public void addMetricsSuite(MetricsSuite metricsSuite)
metricsSuite
- MetricsSuits@OpenApi public void addMetric(Metric metric)
metric
- Metric@OpenApi public MetricsSuite getMetricsSuiteByID(java.lang.String id)
id
- Metrics suites' id@OpenApi public void addMetrics(java.util.Collection metrics)
metrics
- Collection of metrics@OpenApi public void removeMetric(Metric metric)
metric
- Metric@OpenApi public void removeMetric(java.lang.String id)
id
- Metric 's id@OpenApi public MetricsSuite getMetricsSuite(java.lang.String name)
name
- Metrics suites' name@OpenApi public boolean contains(java.lang.String metricsSuiteID)
metricsSuiteID
- MetricsSuite 's id