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
FieldsModifier and TypeFieldDescriptionprivate StringName of the metricprivate MetricResultResults of the given metricprivate IServiceDescriptorDescription of the service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetMetricName(String metricName) voidsetResult(MetricResult result) voidsetServiceDescriptor(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:
getMetricNamein interfaceIMetric
-
setMetricName
- Specified by:
setMetricNamein interfaceIMetric
-
getServiceDescriptor
- Specified by:
getServiceDescriptorin interfaceIMetric
-
setServiceDescriptor
- Specified by:
setServiceDescriptorin interfaceIMetric
-
getResult
-
setResult
-