|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
A metric is a canonical building block of the measurement and problem detection framework.
The canonical characteristic of the metric means that for a given model the metric always produces a result that is dependent only on the input model. In other words, the measurement is not parametric.
| Field Summary | |
static int |
M_CLASS
Constant representing a class metric. |
static int |
M_METHOD
Constant representing a method metric. |
static int |
M_PACKAGE
Constant representing a package metric. |
static int |
M_PROJECT
Constant representing a project metric. |
| Method Summary | |
IParameterStringEnum |
getAggregation()
Returns the parameter that defines aggregation type of this metric. |
IMetricContext |
getContext()
Returns the runtime context of this metric. |
IAnalyzerDescriptor |
getDescriptor()
Returns the metric descriptor of this metric runtime object. |
int |
getKind()
Returns the kind of this metric encoded as an integer. |
int |
getLowerClassLimit()
Returns the minimum acceptable value for the value of this metric at the class level. |
int |
getLowerMethodLimit()
Returns the minimum acceptable value for the value of this metric at the method level. |
int |
getLowerPackageLimit()
Returns the minimum acceptable value for the value of this metric at the package level. |
int |
getUpperClassLimit()
Returns the maximum acceptable value for the value of this metric at the class level. |
int |
getUpperMethodLimit()
Returns the maximum acceptable value for the value of this metric at the method level. |
int |
getUpperPackageLimit()
Returns the maximum acceptable value for the value of this metric at the package level. |
void |
setContext(IMetricContext context)
Sets the runtime context of this metric. |
void |
setDescriptor(IAnalyzerDescriptor descriptor)
Sets the metric descriptor of this metric runtime object. |
IMetricSurvey |
survey(AstModel model)
Performs measurements of the given model and returns the results. |
| Field Detail |
public static final int M_CLASS
public static final int M_METHOD
public static final int M_PACKAGE
public static final int M_PROJECT
| Method Detail |
public IParameterStringEnum getAggregation()
public IMetricContext getContext()
public IAnalyzerDescriptor getDescriptor()
public int getKind()
public int getLowerClassLimit()
0) if the acceptable minimum value is not defined.public int getLowerMethodLimit()
0) if the acceptable minimum value is not defined.public int getLowerPackageLimit()
0) if the acceptable minimum value is not defined.public int getUpperClassLimit()
0) if the acceptable minimum value is not defined.public int getUpperMethodLimit()
0) if the acceptable minimum value is not defined.public int getUpperPackageLimit()
0) if the acceptable minimum value is not defined.public void setContext(IMetricContext context)
You should not call this method directly; the framework calls it upon activation of the metric.
public void setDescriptor(IAnalyzerDescriptor descriptor)
You should not call this method directly; the framework calls it upon activation of the metric.
public IMetricSurvey survey(AstModel model)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||