CodeQL library for Java
codeql/java-all 0.5.5 ( changelog , source )

Member predicate MetricPackage :: getDistanceFromMain

Distance from Main Sequence.

This measure intends to capture the tradeoff between abstractness and instability: the ideal situation occurs when the sum of abstractness and instability is one. That is, a package is completely abstract and stable (abstractness=1 and instability=0) or it is concrete and unstable (abstractness=0 and instability=1). We thus measure the distance from that ideal situation.

float getDistanceFromMain ( )