Class ServiceInterfaceDataCohesion

java.lang.Object
edu.university.ecs.lab.detection.metrics.services.AbstractMetric
edu.university.ecs.lab.detection.metrics.services.ServiceInterfaceDataCohesion
All Implemented Interfaces:
IMetric

public class ServiceInterfaceDataCohesion extends AbstractMetric
The measurement procedure consists of comparing the sets of parameter types for each service operation so∈ SO (sis) in a pair-wise manner, and then placing the operations with common parameter types into a set of Common operations. The cardinality of this set is then divided by a total number of discrete parameter types for this service.

SIDC (s) = |Common(Param(so ∈ SO(sis )| / totalParamTypes

  • Constructor Details

    • ServiceInterfaceDataCohesion

      public ServiceInterfaceDataCohesion()
  • Method Details

    • evaluate

      public void evaluate()
    • commonParameterTypes

      private List<String> commonParameterTypes(Operation operation1, Operation operation2)