@OpenApiAll
public class Metrics
extends java.lang.Object
Constructor and Description |
---|
Metrics() |
Modifier and Type | Method and Description |
---|---|
float |
get(java.lang.String metricName)
Gets the value from metric name.
|
com.nomagic.magicdraw.uml.BaseElement |
getElement()
Gets the element.
|
java.util.List<java.lang.String> |
getMetricNames()
List the entire available metric names.
|
java.lang.String |
getValueAsString(java.lang.String metricName)
Gets the value from metric name as string.
|
java.lang.String |
getValueAsString(java.lang.String metricName,
java.lang.String format)
Gets the value from metric name as string.
|
boolean |
isAboveLimit(java.lang.String metricName)
Gets the above limit indicator.
|
boolean |
isBelowLimit(java.lang.String metricName)
Gets the below limit indicator.
|
void |
put(java.lang.String abbreviation,
MetricResult metricResult)
Create the metric data.
|
void |
setElement(com.nomagic.magicdraw.uml.BaseElement element)
Sets element.
|
public void setElement(com.nomagic.magicdraw.uml.BaseElement element)
element
- the element to setpublic void put(java.lang.String abbreviation, MetricResult metricResult)
abbreviation
- abbreviation namemetricResult
- MagicDraw metric result.public float get(java.lang.String metricName)
metricName
- the abbreviation name of metric e.g. NA, NC, NO, RFC, etc. This value is case-sensitive.getValueAsString(String, String)
,
getValueAsString(String)
public java.lang.String getValueAsString(java.lang.String metricName, java.lang.String format)
metricName
- the abbreviation name of metric e.g. NA, NC, NO, RFC, etc. This value is case-sensitive.format
- decimal format which is defined by Java DecimalFormat classgetValueAsString(String)
public java.lang.String getValueAsString(java.lang.String metricName)
metricName
- the abbreviation name of metric e.g. NA, NC, NO, RFC, etc. This value is case-sensitive.getValueAsString(String, String)
public java.util.List<java.lang.String> getMetricNames()
public boolean isAboveLimit(java.lang.String metricName)
metricName
- the abbreviation name of metric e.g. NA, NC, NO, RFC, etc. This value is case-sensitive.public boolean isBelowLimit(java.lang.String metricName)
metricName
- the abbreviation name of metric e.g. NA, NC, NO, RFC, etc. This value is case-sensitive.public com.nomagic.magicdraw.uml.BaseElement getElement()