Class AbstractMetric
java.lang.Object
edu.university.ecs.lab.detection.metrics.services.AbstractMetric
- All Implemented Interfaces:
IMetric
- Direct Known Subclasses:
LackOfMessageLevelCohesion
,NumberOfOperations
,ServiceInterfaceDataCohesion
,StrictServiceImplementationCohesion
Abstract metric class template for all metrics
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
Name of the metricprivate MetricResult
Results of the given metricprivate IServiceDescriptor
Description of the service -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setMetricName
(String metricName) void
setResult
(MetricResult result) void
setServiceDescriptor
(IServiceDescriptor serviceDescriptor)
-
Field Details
-
metricName
Name of the metric -
serviceDescriptor
Description of the service -
result
Results of the given metric
-
-
Constructor Details
-
AbstractMetric
public AbstractMetric()
-
-
Method Details
-
getMetricName
- Specified by:
getMetricName
in interfaceIMetric
-
setMetricName
- Specified by:
setMetricName
in interfaceIMetric
-
getServiceDescriptor
- Specified by:
getServiceDescriptor
in interfaceIMetric
-
setServiceDescriptor
- Specified by:
setServiceDescriptor
in interfaceIMetric
-
getResult
-
setResult
-