|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sdmetrics.model.ElementPool
Class to store the model elements of the UML design to be analyzed. The life cycle of an element pool is as follows:
XMIReader object to add design elements.
setFilter().
MetricsEngine can be created with this pool,
which queries the pool elements and stores the metric values with them.
| Constructor Summary | |
ElementPool(MetaModel mm)
|
|
| Method Summary | |
java.util.ArrayList |
getAcceptedElements(int type)
Return a list of accepted elements of a given metamodel type. |
java.util.ArrayList |
getElements(int type)
Return a list of all elements of a given metamodel type. |
MetaModel |
getMetaModel()
Retrieve metamodel on which this element pool is based. |
int |
getNumberOfElements()
Get the total number of elements in the pool. |
void |
setFilter(java.lang.String[] filterStrings,
boolean rejectNonMatching,
boolean filtersEnabled,
boolean calculate)
Apply filter settings to the elements in the pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementPool(MetaModel mm)
mm - Metamodel that defines the element types and attributes.| Method Detail |
public void setFilter(java.lang.String[] filterStrings,
boolean rejectNonMatching,
boolean filtersEnabled,
boolean calculate)
filterStrings - The list of element filters to apply.rejectNonMatching - When this flag is true, elements not
matching any of the filter strings are rejected. When the flag is
false, elements matching at least one filter string are
rejected.filtersEnabled - Flag indicating if output of rejected elements is to be suppressed.
If this flag is false, the filtering mechanism is disabled.calculate - true if links to rejected elements should be
considered for metrics calculation, else set this to false.public java.util.ArrayList getAcceptedElements(int type)
type - The metamodel type ID of the elements to return.
public java.util.ArrayList getElements(int type)
type - The metamodel type ID of the elements to return.
public MetaModel getMetaModel()
public int getNumberOfElements()
|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||