Package org.gmetrics.metric.coupling
Class AfferentCouplingMetric
java.lang.Object
org.gmetrics.metric.AbstractMetric
org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
org.gmetrics.metric.coupling.AfferentCouplingMetric
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Metric
,PostProcessingMetric
public class AfferentCouplingMetric
extends AbstractPackageCouplingMetric
implements PostProcessingMetric
-
Field Summary
Fields inherited from class org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
REFERENCED_PACKAGES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected MetricResult
calculateForPackage
(String path, String packageName, Collection<MetricResult> childMetricResults) groovy.lang.MetaClass
protected MetricResult
getMetricResult
(String packageName) final String
getName()
getProperty
(String property) invokeMethod
(String method, Object arguments) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value) Methods inherited from class org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
calculateForClass, getBaseLevel, getIgnorePackageNames, setIgnorePackageNames
Methods inherited from class org.gmetrics.metric.AbstractMetric
applyToClass, applyToPackage, createAggregateMetricResult, createAggregateMetricResult, getEnabled, getFunctions, isEnabled, isNotAnInterface, setEnabled, setFunctions
-
Constructor Details
-
AfferentCouplingMetric
public AfferentCouplingMetric()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractPackageCouplingMetric
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractPackageCouplingMetric
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractPackageCouplingMetric
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractPackageCouplingMetric
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractPackageCouplingMetric
-
getName
-
calculateForPackage
protected MetricResult calculateForPackage(String path, String packageName, Collection<MetricResult> childMetricResults) - Overrides:
calculateForPackage
in classAbstractMetric
-
afterAllSourceCodeProcessed
public void afterAllSourceCodeProcessed()- Specified by:
afterAllSourceCodeProcessed
in interfacePostProcessingMetric
-
getMetricResult
-