@OpenApiAll
public class MetricsTool
extends com.nomagic.magicreport.engine.Tool
Constructor and Description |
---|
MetricsTool() |
Modifier and Type | Method and Description |
---|---|
MetricsResult |
calculate(java.lang.String suiteName)
Calculate the metrics data from suite name with whole project.
|
MetricsResult |
calculate(java.lang.String suiteName,
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> elementList)
Calculate the metrics data from suite name, element list and filter name.
|
MetricsResult |
calculate(java.lang.String suiteName,
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> elementList,
java.lang.String filter)
Calculate the metrics data from suite name, element list and filter name.
|
MetricsResult |
calculate(java.lang.String suiteName,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
Calculate the metrics data from suite name, element list and filter name.
|
MetricsResult |
calculate(java.lang.String suiteName,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element,
boolean recursive)
Calculate the metrics data from suite name, element list and filter name.
|
MetricsResult |
calculate(java.lang.String suiteName,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element,
boolean recursive,
java.lang.String filter)
Calculate the metrics data from suite name, element list and filter name.
|
MetricsResult |
calculate(java.lang.String suiteName,
java.lang.String filter)
Calculate the metrics data from suite name and filter name.
|
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setProperties
public MetricsResult calculate(java.lang.String suiteName)
suiteName
- the name of metrics suite which is defined by Metrics menu.public MetricsResult calculate(java.lang.String suiteName, java.lang.String filter)
suiteName
- the name of metrics suite which is defined by Metrics menu.filter
- the name of filter declares in Metrics plugin (dialog text)public MetricsResult calculate(java.lang.String suiteName, java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> elementList)
suiteName
- the name of metrics suite which is defined by Metrics menu.elementList
- the list of element will be calculatedpublic MetricsResult calculate(java.lang.String suiteName, java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> elementList, java.lang.String filter)
suiteName
- the name of metrics suite which is defined by Metrics menu.elementList
- the list of element will be calculatedfilter
- the name of filter declares in Metrics plugin (dialog text)public MetricsResult calculate(java.lang.String suiteName, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
suiteName
- the name of metrics suite which is defined by Metrics menu.element
- the element or root of elementpublic MetricsResult calculate(java.lang.String suiteName, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, boolean recursive)
suiteName
- the name of metrics suite which is defined by Metrics menu.element
- the element or root of elementrecursive
- if true, calculate the result from given root element and recursive to all children;
otherwise false, calculate the result from single elementpublic MetricsResult calculate(java.lang.String suiteName, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, boolean recursive, java.lang.String filter)
suiteName
- the name of metrics suite which is defined by Metrics menu.element
- the element or root of elementrecursive
- if true, calculate the result from given root element and recursive to all children;
otherwise false, calculate the result from single elementfilter
- the name of filter declares in Metrics plugin (dialog text)