Class StructuralCoupling
java.lang.Object
edu.university.ecs.lab.detection.metrics.models.StructuralCoupling
Class implementing the Structural Coupling Metric proposed (1)
(1) Panichella, S., Rahman, M. I., & Taibi, D. (2021). Structural coupling for microservices. arXiv preprint arXiv:2103.04674
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
Average of GWFprivate final double
Average of LWFprivate final double
Average of SCGlobal Weight Factor(s1, s2) = degree(s1, s2)/max_degreeLocal Weight Factor(s1, s2) = (1+out_degree(s1, s2))/(1+degree(s1, s2))private final double
Maximum of GWFprivate final double
Maximum of LWFprivate final double
Maximum of SCStructural Coupling(s1, s2) = 1 - 1/degree(s1, s2) - LWF(s1, s2) * GWF(s1, s2)private final double
Standard deviation of GWFprivate final double
Standard deviation of LWFprivate final double
Standard deviation of SC -
Constructor Summary
ConstructorDescriptionCalculate the Structural Coupling and related metrics for a given Service Dependency Graph -
Method Summary
-
Field Details
-
LWF
Local Weight Factor(s1, s2) = (1+out_degree(s1, s2))/(1+degree(s1, s2)) -
maxLWF
private final double maxLWFMaximum of LWF -
avgLWF
private final double avgLWFAverage of LWF -
stdLWF
private final double stdLWFStandard deviation of LWF -
GWF
Global Weight Factor(s1, s2) = degree(s1, s2)/max_degree -
maxGWF
private final double maxGWFMaximum of GWF -
avgGWF
private final double avgGWFAverage of GWF -
stdGWF
private final double stdGWFStandard deviation of GWF -
SC
Structural Coupling(s1, s2) = 1 - 1/degree(s1, s2) - LWF(s1, s2) * GWF(s1, s2) -
maxSC
private final double maxSCMaximum of SC -
avgSC
private final double avgSCAverage of SC -
stdSC
private final double stdSCStandard deviation of SC
-
-
Constructor Details
-
StructuralCoupling
Calculate the Structural Coupling and related metrics for a given Service Dependency Graph- Parameters:
graph
- - Service Dependency Graph to study
-