public class SetSummationHelper
extends java.lang.Object
| Constructor and Description |
|---|
SetSummationHelper(MetricsEngine engine,
Set set,
java.lang.String setAttributeName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.util.Collection<?> c)
Adds the contents of a collection to the result set.
|
void |
add(ModelElement element,
Variables vars)
Processes the cumulative or valueset expression for a model element and
adds its contents to the result set.
|
void |
excludeSelf(ModelElement element)
Removes a model element from the result set if the "exclude_self"
attribute is set to true.
|
java.util.Collection<?> |
getResultSet()
Gets the result set.
|
public SetSummationHelper(MetricsEngine engine, Set set, java.lang.String setAttributeName) throws SDMetricsException
engine - metrics engine for expression evaluationset - The definition of the set to processsetAttributeName - The name of the attribute defining the sets to
accumulate.SDMetricsException - Summation attributes have illegal valuespublic void add(ModelElement element, Variables vars) throws SDMetricsException
element - The model element to process.vars - Variables for the evaluation of expressionsSDMetricsException - An error occurred evaluating the set
expressions.public void add(java.util.Collection<?> c)
c - Collection to add.public void excludeSelf(ModelElement element)
element - Element to remove.public java.util.Collection<?> getResultSet()